Off all the states of matter, only solids have a defined shape, due to stronger bonds between its molecules/atoms. Unlike solids, Liquids and gasses take the shape of whatever container they are placed into. This, again, is due to weaker linkages between the atoms/molecules of gasses and liquids.