Motors convert electrical energy to mechanical energy. Generators transfer mechanical energy to electrical energy.
An electric motor does this
Heat
Conversion of electrical energy into mechanical energy
In an electric motor, electrical energy is converted into mechanical energy to produce motion. In a generator, mechanical energy is converted into electrical energy by rotating a coil within a magnetic field. Essentially, electric motors convert electrical energy into mechanical energy, while generators convert mechanical energy into electrical energy.
Generators are similar to motors in that they both involve the conversion of energy, but generators convert mechanical energy into electrical energy, whereas motors convert electrical energy into mechanical energy.
A windmill converts kinetic energy of the wind into mechanical energy by rotating its blades. This mechanical energy is then converted into electrical energy through a generator, making it an example of converting mechanical to electrical energy.
electrical energy>>>>mechanical energy>>>>heat energy
The mechanical energy of a power plant turbine, driven by steam or by water (hydro), is converted to electrical energy
In an electrical motor, electrical energy is converted into mechanical energy to produce motion. In a galvanometer, electrical energy is converted into mechanical movement of the pointer in response to the flow of current.
fan converts electric energy into magnetic and further mechanical energy
Mechanical energy can be converted into other forms of energy such as thermal, electrical, or sound energy, depending on the system in which the conversion takes place. This conversion occurs due to the work done by the mechanical energy on the objects or materials involved in the process.