washer won't agitate, but spins and drains

Washer quit working yesterday in middle of wash cycle. (Never fails they’ll be full of water when they quit…) Turned knob to spin, and lo and behold pump kicks on and drum spins. Any ideas?