You cannot simply swap a 2 speed motor into a washer that normally uses a 3 speed motor without altering the wiring. In the 3 speed configuration, pin 7 of the motor connector is power to the mid speed winding. In the 2 speed configuration, pin 7 is neutral. By just swapping motors, you have placed a direct short between hot and neutral when mid speed is selected. The gray wire does not plug into the centrifugal switch of the 3 speed motor, it plugs into the thermal overload. The lid switch in your model does not "receive" power, it simply interrupts the neutral circuit to the motor when the lid is opened. There is a way to make the 2 speed motor work but I'm not going to try and explain how to do it over this forum. You need to put the proper motor into the washer.