The shape of a liquid in a half-filled bottle is determined by the container, while a gas fills the entire volume of the container. A gas has a volume determined by the container, while the volume of a solid is fixed. Matter changes state, like from liquid to gas, when sufficient energy is added in the form of heat or temperature change to overcome the intermolecular forces binding the molecules.