Generally , substances exist as a solid , a liquid , or a gas , and may change between these phases of matter when there are changes in temperature or pressure . Generally , chemical substances exist as a solid , liquid , gas , or plasma and may change between these phases of matter with changes in temperature or pressure .