Avoid splicing motor power cables when ever possible. Ideally, motor power cables should run continuous between the drive and motor terminals. The most common reason for splicing is to incorporate high-flex cable for continuous flexing applications.
Shield drain wire must be spliced only to mating shield drain wires and not grounded at the junction box. Feedback shields must be passed through pin for pin. Separate junction boxes for power and feedback are required.
You will need to use the ohmmeter as an ohmeter and not as a continuity checker for the next step in the procedure. You will want to use the lowest ohm scale your meter offers, as the typical winding resistance in motors such as these is less than 100 ohms. If the motor is a permanent split-capacitor motor, you are going to be looking for common and speed taps of the winding.
For some kinds of motors, principally motors with terminal-based connections, basic wiring is self evident. The terminal board itself usually has markings that indicate where line one and line two are to be connected. But what if you need to reverse that motor, use a different (but available) voltage setting, or have a motor that has nothing more than a bunch of color-coded or numbered leads coming out of it?