Amana washer won't spin or agitate but drains

Our Amana washer was making a banging noise for a few wash cycles. The noise has stopped but it has also stopped spinning or agitating. It does drain and there appears to be some leakage under the washer. Any ideas on how to trouble shoot?

Thanks,
Jody

The motor plug may have unplugged or a wire came loose. I would’t spend much money on it if you can see water dripping from the tub seal.