whirlpool top loader washer death

Hello guys! I need help. Earlier today my washer would fill water, agitate, but not pump water out. I got home & checked it out. It’s full of water, now it won’t agitate or drain. I can hear the timer ticking in different dial positions. Instead of agitating it want to fill water but the tub is already max full. I’m thinking the 2 way motor has failed? Al the wiring is good, nothing looks damaged or burnt. Anyone please help. Thanks!

We need a model number to give any good advice, so post one and someone should be able to help.