Frigidaire Gallery washing machine

The machine fills and agitated but won’t drain(pump out) or spin. I had a repairman come look at it and he says the switch and pump ate bad. I have a hard time believing both are bad at the same time. How can I check the pump motor & the switch?