Washer won't drain or spin

The washer would not drain. I checked the drain hoses, replaced the pump, checked the continuity of the lid switch and lock, and am now out of ideas.