Maytag washer fills up and stops won't drain or spin

My washer fills up but won’t drain or spin.

Not having a model number I can only suggest that you check the lid switch. Your symptoms indicates a faulty one and you can by pass or jumper it to get a diagnosis if that is the problem.