I fail to see where the energy is coming from. If water is the only source of hydrogen then the energy required to separate the hydrogen and oxygen with electricity is equal to the energy you get when you burn it. That is the theory. The only problem is that the conversion steps are never ideal. Therefore by converting water to hydrogen and oxygen using electricity and then burning the hydrogen and oxygen you would end up with less energy then if you just use the electricity directly.