The state of matter that has a definite shape and a definite volume is a solid.

In a solid, the particles are packed closely together and can only vibrate in place, so the substance keeps its own shape and occupies a fixed amount of space no matter what container you put it in.