A material with a shape that remains unchanged when it is moved from one container to another is a solid.
Liquids don't have a shape - they can assume the shape of any container they are put into. Whereas solids don't change the shape they already have even though they are placed in various other containers.