Nectar contains a high concentration of sucrose (sugar). 
When hummingbirds ingest the nectar, their cells use oxygen to convert it into carbon dioxide and water. 
The oxidation of sucrose releases a large amount of energy, which the birds can use for flapping their wings, etc.