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