Washer Only Spins

Maytag Commercial Series Washer only spins. No matter what setting on the knob it will not start or fill; it only spins.

I have seen advice that leads me to believe this is the lid switch. Is there a way to test this to see if this part is bad?

Thanks