You should be able to isolate into two groups any leads which have continuity with one another. The starting circuit is likely to isolate to two leads, the running circuit may have two or more leads that show continuity. If the running circuit has more than two leads, you will need to determine how those leads are to be used for voltage or speed changes.
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.
The first thing you will need to discover is whether you are dealing with a three-phase motor. You may already know this from the application, but another giveaway is that the lead wires of most three-phase motors are single colors, not multiple colors, and usually identified with numbers. If, on the other hand, the motor diameter is less than seven inches and has a terminal board, it is most likely a single-phase motor.
In addition, note that the common lead in this type of motor is usually white or purple. If there are additional leads in the run widing group, continue to use the ohmmeter to test the now-identified common and additional leads. Descending resistance will give you ascending speeds.