maytag washer not draining every time

I have a Maytag washer Model # MAV5057AWW. The washer is about 8 years old.
When running on the delicate cycle the machine sometimes finishes the cycle
without draining or spinning the water out. At first it only happened once
and a while and on the second rinse cycle. Now it happens every time we use
the second rinse and is begining to happen on the regular delicate cycle
also. Do I need to replace the timer or is it a switch or do I have to buy
a new washer I can’t afford? Thanks, Rick