Simple distillation works because the dissolved solute has a much higher boiling point than the solvent. When the solution is heated, solvent vapour evaporates from the solution. The vapour is cooled and condensed. The remaining solution becomes more concentrated as the amount of solvent in it decreases.
There are two ways of obtaining different liquids from the column: