Step-by-step explanation:
Molecules present in a liquid state are less tightly held together as compared to solid state. As molecules in a liquid have less strong intermolecular forces of attraction.
As a result, liquid molecules have kinetic energy and they are able to slide past each other. Hence, in a liquid state every substance is able to occupy the shape and size of the container in which it is placed.
Whereas in a solid state, particles are held together by strong intermolecular forces of attraction. So, they have definite shape and volume.
In gaseous state, molecules are far away from each other. And, they can be completely compressed.
Liquids can be partially compressed but solids cannot be compressed.
Therefore, we can conclude that liquid is the state of matter which has enough kinetic energy to partially overcome the intermolecular attraction between the particles, allowing the particles to flow and take the shape and volume of whatever container the sample is in.