In a closed container the three states of matter would be solid, liquid and gas
Solid- The solid exists as a rigid solid and has fixed shape and volume. Strong inter molecular and intramuscular forces inhibit the solid from losing its shape and occupying the volume of container.
Liquid- It takes the shape of the container but not the volume of the container. This means the kinetic energy is not large enough for the liquid to cover all the space inside the container.
Gas- The gas expands to take both the shape and volume of the container. This would explain why a balloon inflates when you blow air into it.