You need to do a spring with wireframe desing, after that, create a plane perpendicular to the spring and made a sketch with the thread section. after all this just create a rib or grove (external or internal thread) arround the spring.
I hope this could solve to you