The power plants of such vehicles convert the chemical energy of hydrogen to mechanical energy either by burning hydrogen in an internal combustion engine , or by reacting hydrogen with oxygen in a fuel cell to run electric motors.