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