DC motor is an electrical device which convert electrical energy into mechanical energy.
The basic working principle of the dc motor, is that when a current carrying conductor is placed in the magnetic field , it experiences a force, and the direction of the force is perpendicular to the direction of magnetic field.