The next time it doesn’t spin don’t touch lid or anything else.
Reach over and grab the timer knob without pulling or pushing it in. Push it up, then to the right, then down, and then to the left.
If the motor comes on, the timer has bad contacts inside and will need to be replaced.