What are the three main states of matter and how does it transition between them?

The three main states of matter are solid, liquid, and gas. Matter consumes energy as it changes state from solid to liquid and liquid to gas. When matter changes from gas to liquid or liquid to solid, it releases energy. Temperature and pressure changes are the key influencers of these state changes.