Here is the tutorial.
Insert >> Helical Sweep >> Protusion.
Draw center line about vertical axis and draw another line defining the height of spring.
Exit the sketch and input pitch value.
Now the section sketch will open.
Make a circle defining the cross section of the spring.
Exit sketch & Click OK and Spring is generated.
Sketch >> End face of the spring.
Convert the edges.
Similarily Extrude it on the other side also.
We have the spring generated.