This is a simple test to see if the windings in the motor are good. It also checks to see which pairs of wires go to each winding. I used a 3V LED (https://amzn.to/2QCheG4) for this test. A 4V or 5V LED should work too. You could also use a lower voltage LED with a resistor and a higher voltage LED might also work. And, of course, you can use a multimeter or incandescent bulb.
Please note that I may be paid from links in this content.