Fire or flame can occur in presence of a gas. Only gases can burn with a flame. The wood that we burn consists of hydrocarbon structures decomposing into carbon dioxide, water, carbon monoxide (the molecules which do not receive enough oxygen) and carbon particles called soot.