If you are confused by me saying that the current flows from positive to negative, that just happens to be a historical convention. People like Benjamin Franklin, who helped figure out the mystery of electricity back in the 18th century, believed it was a flow of positive charges, so it flowed from positive to negative. We call this idea conventional current and still use it to this day in things like Fleming Left-Hand Rule.
A ferrite sleeve around the three power conductors as they leave the drive will help to reduce common-mode noise current. Take all three conductors two or three times through the core. If it runs hot reduce the number of turns.
The colors or numbers themselves are often a clue, but they alone may not provide sufficient information. There is always the trial and error method, but I do not recommend that because of the potential for destructive results. Instead, the Motor Doctors suggestion is to equip yourself with an ohmeter (don nott settle for just a continuity tester) and learn to perform a few simple tests with it.
Another interesting design is the brushless DC (BLDC) motor. The stator and rotor effectively swap over, with multiple iron coils static at the center and the permanent magnet rotating around them, and the commutator and brushes are replaced by an electronic circuit. You can read more in our main article on hub motors. Stepper motors, which turn around through precisely controlled angles, are a variation of brushless DC motors.