The world needs a new source of energy, an unspillable source.

What is the process of hydroelectric energy into a water dam and then into electricity? How does it work?

I know the hydroelectric energy part, but what is the rest?
Please answer ASAP (as soon as possible)