Think about your answer, then reveal below.
Model answer: Gas particles move freely at high speeds with very weak attractions between them, so they spread out to fill all available space. Liquid particles are attracted to each other strongly enough to stay close together but can slide past one another, so they take the shape of the container but do not expand to fill it.
In a gas, kinetic energy dominates over the weak attractions between particles. Particles fly in all directions, bouncing off container walls and each other, until they occupy the entire volume. In a liquid, attractions between particles are strong enough to keep them close, but not strong enough to lock them in fixed positions. This intermediate behavior gives liquids a definite volume but no definite shape.