>>12232982Materials generally experience elastic deformation (return to normal when force is removed), then plastic deformation (stay at their new position), then failure.
A spring works by shaping a material into a coil, where when the coil is compressed, the entire material is in a state of elastic deformation in the same direction. It is then locked in that position, storing potential energy, ready to be released when the trigger is activated.