Did you check voltage after pulling hose off from pressure switch? Power feed (120vac) to pressure switch is on the yellow/black wire, once water is drained it is switched to the brown wire. If during spin, you have 120vac on yellow/black but not on brown (with hose removed), switch is bad. You have wiring diagram from behind control panel?
Eric