Imagine that you move a substance from one container to another and its volume changes.

What state of matter is that substance?

liquid

solid

gas

The substance could be in any state of matter (liquid, solid, or gas) since volume changes can occur in all states.