how does the sun burn in the space even though there is no oxygen in space
The energy of sun is not due to burning or combustion of any substance.
The heat is produces by a different process called fusion.
The small H nuclei combine to from He, and a large amount of energy is produces in this process.