Washer won't drain

The washer goes through all of the cycles except the drain cycle. It stops at the drain cycle and stops without draining.

Possibly the lid switch.

Glen was right on. It was the Lid Switch. I purchased a new one and replaced it and everything works well now. Thanks Glen.