The correct response is:
from a liquid to a gas, and back to a liquid
In distillation, the liquid (water) is heated to form vapor (gas), and then that vapor is cooled to condense back into a liquid, effectively separating it from the dissolved sugar.