Gas expands to fill the shape and volume of its container. For instance, the steam that comes out of a hot teakettle, making the whistle sing, is water in the form of a gas. Heat causes substances to change their state because, when heated, the molecules within the substance to move around faster.