Washer does not agitate

My wife has noticed that recently the agitator stops working in any given wash cycle. Then, sometimes, it will start up again after ‘fiddling’ with the control dial & sometimes not. Also, the water will not pump out when dialing to the end of the spin cycle when it does not agitate and, then again, sometimes it will work!?

Any ideas out there on the crux of the problem?