The molecules of gases and liquids are present far apart from each other. Due to the large intermolecular forces, the intermolecular attractions are very less and thus liquids and gases can flow. On the other hand, solids have very few intermolecular spaces. The intermolecular forces are high giving them a definite shape and making it rigid. Thus, solids do not flow.