According to kinetic theory of energy, the intermolecular spaces between molecules of solids are very less and so have strong intermolecular force and thats why the molecules do not actually move and just vibrate which is cause that they have definite shape and volume