The correct response is:
from a liquid to a gas, and back to a liquid.
During distillation, the sugar solution is heated, causing the water to evaporate (phase change from liquid to gas). The vapor is then cooled and condenses back into a liquid, effectively separating it from the dissolved sugar.