When we apply force on a spring to compress it the applied force is stored and when the spring is released the force stored in it helps to retain its original shape. This force is elastic force
Force ,F= -Kx
K= the spring constant
X= the displacement of the spring
Like if satisfied