What does the washer do during the drain cycle?
Can you hear the motor running during the drain or spin cycle?
If the washer is running during the drain/spin cycle, but is not pumping the washer out check your drain hose to make sure it is not kinked in the back.
If the washer does not run during the drain/spin cycle then you may have a bad lid switch.
When you open and close the lid you should be able to hear the lid switch click on and off.