In solids, particles are closely packed. There is a strong force of attraction and the intermolecular space is almost zero. Therefore the molecules are not free to move, which makes them hard and rigid. So solids can not be compressed.
Concept: Change of State of the Matter on the Basis of Inter Particle Space and Inter Particle Attraction and Collision