An electric motor consists of an armature winding. The armature winding is surrounded by permanent magnets which generate magnetic field. When electric current is passed through the armature it starts to rotate. So, an electric motor converts the electrical energy into mechanical energy.