Thermodynamically speaking, water has already "rolled down the hill"...there is no potential energy in water that can be exploited in an engine.
If you are talking about elemental hydrogen derived through electrolysis,...you are talking about putting energy into the molecule to split hydrogen from the oxygen,...there is no net gain to be had.