In a hydropower plant, the water stored in the dam has potential energy. When the water flows from higher altitude, the potential energy is converted into kinetic energy. When the flowing water rotates the turbine, the kinetic energy is converted into mechanical energy. The generator converts mechanical energy into electrical energy.