An electric motor works on the principle that when a current-carrying coil is placed in a magnetic field, it experiences a torque which tends to rotate it.