Generators don't actually create electricity. Instead, they convert mechanical or chemical energy into electrical energy. They do this by capturing the power of motion and turning it into electrical energy by forcing electrons from the external source through an electrical circuit.
The mass and velocity for kinetic energy. Potential Energy: How high an object is and the mass in kilograms or it is the weight in and how high an object is. There are two formulas to calculate potential energy, but the one with grams is used more often.