Unlike toys and flashlights, most homes, offices, factories, and other buildings aren't powered by little batteries: they're not supplied with DC current, but with alternating current (AC), which reverses its direction about 50 times per second (with a frequency of 50 Hz). If you want to run a motor from your household AC electricity supply, instead of from a DC battery, you need a different design of motor.
In an AC motor, there's a ring of electromagnets arranged around the outside (making up the stator), which are designed to produce a rotating magnetic field. Inside the stator, there's a solid metal axle, a loop of wire, a coil, a squirrel cage made of metal bars and interconnections (like the rotating cages people sometimes get to amuse pet mice), or some other freely rotating metal part that can conduct electricity. Unlike in a DC motor, where you send power to the inner rotor, in an AC motor you send power to the outer coils that make up the stator. The coils are energized in pairs, in sequence, producing a magnetic field that rotates around the outside of the motor.