An electric generator converts kinetic energy (mechanical movement) to electrical energy. The mechanical movement can be provided by a variety of means, examples are the moving turbine blades in a steam turbine being used to generate an electrical current and associated voltage.
The process of moving an electrical wire through a magnetic field generates current which flows in the wire. This effect is demonstrated by Fleming’s Left Hand Rule. The thumb (M) shows the direction of motion of the wire, the first finger (F) shows the direction of the magnetic field and the second finger (C) shows the direction of the resulting current.