I am curious about the need to replace both the switch and the pump. If the switch doesn't work, how did you test the pump? If the pump doesn't work, how did you test the switch?
I ask because the is usually a bit of electronic components that makes the pump run and that is controlled by the switch. Maybe you have checked the parts separately already. I was just checking.