The correct response is:
from a liquid to a gas, and back to a liquid.
In distillation, the solution (liquid) is heated, causing the water to evaporate (turn into gas). The gas is then cooled and condensed back into a liquid, effectively separating the water from the dissolved sugar.