Boiling purifies water because:
it rises the temperature of water
it lowers the volume of water
Boiling kills the germs and microorganisms which are present in the water because, at high temperature, the microorganisms can't sustain and they die.
Thus, this method purifies water and makes it suitable for drinking.