IIRC the amount of energy required to split the hydrogen and oxygen atoms from a water molecule exceeds the amount of energy you get from recombining them (e.g. fuel cell).

Nuclear subs use electric energy from their reactors/generators to get oxygen from seawater for the crew and hydrogen for their standby fuel cells.