It’s because of bond between atoms or molecules that form the substance. Stronger bond like metal, cristalline or covalent bond are stronger and less flexible so substance appears solid. Otherwise weak bond as ionc or electrostatic ones like in water make molecules free to move and make substance appears liquid o gas.
Latest Answers