When current is passed through a spring then current flows parallel in the adjacent turns. NOTE : When two wires are placed parallel to each other and current flows in the same direction, the wires attract each other. Similarly here the various turns attract each other and the spring will compress.