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 (liquid) to evaporate into vapor (gas), and then it is cooled to condense back into liquid water, separating it from the dissolved sugar.