Washer won't spin out

Ok, so here’s what’s going on:

The washer won’t spin or agitate. The motor control board gave me 7 flashes, indicating an open lid switch. I bypassed it with a wire nut, and it worked for one cycle. Same thing again. This time I crimped it, and it worked for one cycle. Same thing again. I verified the circuit was closed, but still had the same 7 flashes, so I replaced the motor assembly, as the tech sheet instructed. It worked for one cycle, and now the same thing again.

Anybody got any ideas? Thanks.

Replace the lid switch as not only does it detect the lid closed but must also detect the lid being opened after each load… or it will give you a fault code.