And after you get everything hooked up but before you button it up and plug the AC line cord into the AC socket, do the following.
Using an analog ohmmeter or multimeter (not a digital one), set it to the lowest Ohms range (probably R X 1) and Zero it. Connect it to the two flat blades of the line plug (US 120 VAC standard) or to the two Hot pins or blades (all 220 to 240 volt systems). There should be no reading with the switch OFF.
Turn the motor switch ON (with a FWD-OFF-REV switch make the test twice, for both directions). The meter should indicate a few ohms. It should not read Zero other than possibly momentarily. If it does, either you have made a wiring error or something is shorted to Case . Either fix the error, fix the motor, or scrap the motor.
Change to the highest Ohms range (probably R X 10K) and zero the meter. Connect the meter leads to the ground pin and either or both of the other two pins or blades of the line plug. With the switch off, the meter should read Infinity. Turn on the motor switch or turn it to FWD and then REV. The meter should continue to read Infinity. If not, fix the wiring, fix the motor or scrap the motor.