If the particles of a substance have enough energy to partially overcome inter-molecular interactions, then the particles can move about each other while remaining in contact.
This describes the liquid state. In a liquid, the particles are still in close contact, so liquids have a definite volume.
However, because the particles can move about each other rather freely, a liquid has no definite shape and takes a shape dictated by its container.