Solids, liquids, and gases have different properties related to shape and volume because of the following reasons:
Solids have fixed shape and volume. For eg. iron, wood, etc.
Liquids have fixed volume but no fixed shape. For eg. milk, water, etc.
Gases have neither the fixed shape nor the volume. For eg. oxygen, carbon dioxide, etc.