If there is no air in space, then how does the Sun burn?
Good question! The sun doesn't burn by combustion - an exothermic oxidation reaction (chemical, interaction between atoms).
A thermonuclear fusion reaction occurs on the Sun. The hydrogen bomb, in general, is only very large.