A DC motor contains a split ring commutator that reverses the direction of the current every 180 degrees which reverses the force direction, allowing constant directional torque and rotation.
Recall that F=nBILsin(θ), meaning torque is greatest when the coil is perpendicular to the magnetic...