When using distillation to separate water from dissolved sugar, the phases that water goes through are from a liquid to a gas, and then back to a liquid. This process involves heating the liquid (sugar solution) to evaporate the water (turning it into a gas), and then cooling the vapor to condense it back into liquid form.
So the correct response is: from a liquid to a gas, and back to a liquid.