Motors are machines that convert electrical energy into mechanical energy using magnetic forces.
When current is passed through a wire loop that lies in a magnetic field, a turning force, or torque, is created that causes the loop to rotate. In motors, this rotating motion is transmitted to a shaft. This rotational energy is then utilized for useful work in the form of mechanical power. Motors are used in pumps, fans, and compressors as well as in equipment involved in the handling and processing of manufactured materials. Despite the lengthy period of time in which motors have been in development, motors are still far from being perfectly efficient converters of electrical to mechanical energy.