 The hydrogen is then burned in an internal combustion engine or used in a fuel cell to generate electricity which powers the vehicle.These designs take energy from the chemical that reacts with water; vehicles of this type are not precluded by the laws of nature.Aluminium, magnesium, and sodium borohydride react with water to generate hydrogen and have been used in hydrogen on demand prototypes.