If it is a stepper motor, you can identify the common lead. It is the one that has minimum resistance to the other leads. The other windings go through the common so you get about double the resistance between those leads.
Make a mark on the spindle. Apply power between the common and the other leads in turn. If you get it right, you might be able to make the motor move around in steps.
Try to work out how many steps there are per revolution for your motor.