There are spaces between the particles of matter.
Matter is made up of tiny particles which we call atoms. Atoms usually come together to form small units called molecules.
Molecules tend to have some space between them. If you put a hundred cricket balls together, there would be tiny spaces between them right? The space between molecules is similar. We call this space the intermolecular space.