Maytag doesnt drain or complete cycles

Initially washer does not drain unless I lift and close lid. Put in new lid switch. Now when I start the cycle it goes through the cycle in the wash mode until it reaches the end of the cycle but never rinses, drains or spins. Pump does work. Belt is fine and motor seems fine.

If I reset to the rinse cycle it will drain and spin.

Help please. Is this a timer problem or board problem. If so how do I check?