If you have no voltage to the water pump during the drain cycle then you need to trace it back to find out were you lose it.
Did you find the wiring diagram inside the washer?
Trace the wires back from the water pump, should go to the lid switch and then the timer.
You may simply have a bad lid switch.
Does the washer run in the spin cycle?