Washer won't rinse/spin

Washer does not cycle all the way through. Gets stuck at the rinse/spin. If I shut machine off and just hit the rinse button (which is 2 min.) it rinses okay, but gets stuck on spin. I open lid, close lid, hit the pause button and it starts to spin for 6 to 8 seconds and shuts off. I can continue to do this for whole 5 min. spin cycle, but clothes are still extremely wet. Sometimes it makes a loud whining sound. Noticed some water at front of washer. But water seems to be draining fine at drain hose. Also, had washer lid open and used screw driver to push in lid switch and then pressed spin cycle, tub started to spin, again for only 6 to 8 seconds and then stops.