All substances change from gas to liquid to solid, or the other way around.
We use this property when we boil water, or make ice cubes in a freezer, or let jelly solidify in a mould for example.
Changes between gas, liquid and solid occur all around us all of the time, for example in the water cycle.