Maytag Washer problem

I have a Maytag washer that will stop in mid cycle. It happens when there is a large load. It stops in both the wash and spin cycle. It runs OK with a small load or when I tested it with nothing in it. It also seem to agitate very slowly when there is a large load. Any help would be appreciated.

Thanks