The correct response is: from a liquid to a gas, and back to a liquid.
In distillation, the sugar solution is heated until the water evaporates (goes from liquid to gas), and then the vapor is cooled and condensed back into liquid form, effectively separating the water from the dissolved sugar.