A flame (from Latin flamma) is the visible, gaseous art of a fire. It is caused by a highly exothermic reaction taking place in a thin zone. Very hot flames are hot enough to have ionized gaseous components of sufficient density to be considered plasma.
The flame is the visible portion of the fire. Flames consist primarily of carbon dioxide, water vapor, oxygen and nitrogen.
when a lighter is held to a candle, The applied heat causes the fuel molecules in the candle wax to vaporize. In this state they can then readily react with oxygen in the air, which gives off enough heat in the subsequent exothermic reaction to vaporize yet more fuel, thus sustaining a consistent flame.
Hope it helps