The attractive forces between the neighboring particles of a substance are known as intermolecular forces. The state of a substance relies upon the strength of the intermolecular forces among the molecules in a substance.
There are three kinds of intermolecular forces, that is, the dipole-dipole forces, ion-dipole forces, and the London dispersion forces. On the basis of the kinds of intermolecular forces, it is concluded that the intermolecular forces primarily relies upon the nature of the molecule's bonding.
Thus, on the basis of the nature of bonding between the associating atoms in a molecule one can know about the nature of intermolecular forces. On the basis of Newton's law of gravitation, all the physical bodies get fascinated towards each other, and it is known that each physical body comprises of matter. Thus, the matter is fundamentally attracted by other matter.