Wiggle the wire harness near the motor plug well it's humming and see if the motor kicks in.
To do this I would remove the cabinet, jump out the lid switch and put the washer in the spin cycle.
Then as the motor is humming wiggle the harness near were it plugs into the motor.
If the motor kicks in you have a bad connection.
You could also disconnect the motor from the pump and transmission, but leave the wire harness plugged into the motor.
Then try and run the washer in the spin cycle with the motor just sitting on the floor. You may want to put your foot on the motor to keep it from jumping around if it starts.
Let us know what you find.