Washer stops mid cycle, after replacing the lid switch

The washer recently started stopping at different points in the wash cycle. I have replaced the lid switch and it continues to randomly stop. Sometimes moving the dial gets it to restart, sometimes just opening and closing the lid gets it to restart. What next?

Thanks!!