Welcome to the world of Electric motors
An electric motor is a machine that turns electricity into mechanical energy. In other words, electric power makes the motor spin around—and the motor can drive machinery. In a clothes washing machine, an electric motor spins the drum; in an electric drill, an electric motor makes the drill bit spin at high speed and bite into the material you're drilling.
Electricity and magnetism are closely related.
Electromagnets show that electricity can make magnetism, but how do they work? When electricity flows through a wire, it creates an invisible pattern of magnetism all around it.
You might have seen giant steel electromagnets working in a scrapyard. An electromagnet is a magnet that can be switched on and off with electricity.