A liquid (water) takes on the temperature you give it. You need to boil the water if you want to brew a cup of tea. Having brewed your cup of tea, it will take on the shape of the cup you use. Therefore, gas and liquids take on the shape of the container.