This tutorial will be helpful to you. just follow the steps and read the description for every step.
Model is also available Spring working
tutorial for this model is http://grabcad.com/questions/tutorial-how-to-make-a-working-spring
up-vote if you like.
1. As shown. I have already make..
First of all select motion analysis.
2. Now make a force. before this you have to make the center axis.
And select all the parameter and values of force same as in image.
3. Make another force which is flipped direction to compress the spring.
4. First make the time bars of the forces same as in fig. then click on calculate the motion study commend.
5. Play the animation from play commend.
6. This will be played like this.
10. This is the competed one wave of expending and compressing of the spring.