Dear Student
Solids have very strong intermolecular forces of attraction and very small intermolecular spaces due to which the atoms and molecules cannot change their position. although they can vibrate in their own position but cannot change their position.
so they have fixed shape and volume.
Regards