whirlpool washer

My washer fills up with water, it agitates, but then it will not go through its next cycle, which is to drain the water. Is it a timer that is wrong with it? Or could it be something else? Or if it is the lid switch, how do I bypass it?

any help would be appreciated,
Thanks

More than likely the pump is either out or has an obstruction.
Nat