Force is a push or pulls acting on an object which tends to change the state of rest or of uniform motion or the direction of motion or the shape and size of the object.
When force is applied to the spring, the spring gets stretched or compressed according to the applied force.
Stretched spring shows the change in the shape of the spring due to applied force.