Only the solid phase.
When lit all three phases of matter are present, solid, liquid and gas. The candle itself is still solid. But liquid wax pools under the flame. And the flame itself is releasing gases consisting mostly of water vapor and carbon dioxide. Many consider the flame is in another state of matter, the plasma state. It's a high energy state of matter exhibited by stars, flames and lightning.