A stepper motor works by having multiple poles that are energized in sequence according to the direction of rotation desired. The rotor is pushed just hard enough per pulse so that it can index and rotate to the next required position. Google it for diagrams.