How are three states of matter involved when a candle burns?
The following changes to states of matter occur. See explanation.
At the beginning the candle is solid.
It melts because of the heat, so its state changes to liquid.
Close to the flame the temperature is so high, that the material either evaporates or changes to gas substances.
The light and heat is produced by burning the fumes.