How does an electric motor work?

                 Most powered devices in the home contain an electric motor, which turns electric energy into movement. When an electric current passes along a wire in the field of a magnet, it exerts a force to move the wire. Usually the magnet is still, while the coil carrying the current spins round inside it. Domestic motors run on alternating current, and the current in the coil is rapidly reversed so the magnet’s poles change direction too, forcing the coil to make another half-turn. This process is repeated very rapidly as the motor turns.

                 When a motor runs from direct current, which flows in only one direction, a device called a commutator reverses the current and causes the coil to rotate.

Picture credit: google