Is the method of distilling only for seperating liquids from each other ?
No. It may be used to separate solids dissolved in liquids, too. For example, a solution of salt and water may be seaprated by distilling the water off and the solid NaCl will be left in the pot.