Which state of matter has a definite volume and takes the shape of its container?
Solids are rigid they have both a definite volume a a definite shape.
Liquid are free to move within the volume being held by other liquid molecules. Liquids then have a definite volume but not a definite shape.
Gases are free to move in space. Gases are not held by other gas molecules so can diffuse into any available space. Therefore gases do not have either a definite shape or definite volume.