Here's how it works:
* Electric current: An electric current flows through the motor's coils.
* Magnetic field: This current creates a magnetic field around the coils.
* Interaction: The magnetic field interacts with a permanent magnet or another electromagnet within the motor.
* Torque: This interaction creates a torque on the motor's shaft, causing it to rotate.
There are many types of electric motors, each with its own design and characteristics. However, they all share the fundamental principle of converting electrical energy into rotational motion.