A device that converts mechanical energy to electrical energy is known as a generator. A generator is quite similar to that of a water pump. A water pump creates a flow of water but it does not create water. A generator also creates flow of charges through its wires but does not create electricity. In most cases the source of mechanical energy required for the functioning of a generator comes from: