An electric motor is a machine that converts electrical energy into mechanical energy. In other words, it takes the energy from an electrical power source, like a battery or a power outlet, and uses it to turn a shaft or rotor, which can perform mechanical work such as moving machinery or powering a vehicle.