How does Water Make Electricity?

Water contains potential energy due to height in dam. When water is imparted at high speed on turbine blades, it rotates and coupled generator makes electricity.