Sounds like the lid switch to me. Open the control panel and jump it out. If no go, leave lid switch jumpered, remove the cabinet and take some voltage checks at the motor connector. With washer on in spin mode you should have 120vac between the blue wire and ground. Also check between white/black and ground. If you have 120vac on white/black, you have an open neutral. Wiring diagram should be on inside of back panel (top left) or folded up inside the control panel.
It's not the pressure switch as that has no effect on drain/spin. It's not the capacitor as that is only used for starting the motor, the motor would still hum if it was faulty. Timer and drive motor possible but need to rule out wiring issue particularly with the neutral. Check the white wire and white/black wires at the motor harness connector and motor receptacle as well as the two connections on the motor thermal overload switch. Look for broken wire, burnt/corroded connections.