Here is the tutorial.
Insert >> Helical Sweep >> Protusion.
Keep pressing Middle mouse button for default setting and when we have to select plane, select Top plane.
Draw a center line about the vertical axis.
Draw three lines like these.
Exit the sketch and define the pitch value.
Now define the cross-section of the spring.
Exit the sketch and click OK.
We have the spring generated.