Ionic compounds generally form solids because:
They are made of metals
Ion-ion interaction is the weakest interparticle force.
Ion-ion interaction is the strongest interparticle force.
They are made of non-metals.