Sound travels best through solids, followed by liquids and then gases. If there is not a state of matter for sound to travel through, there is no sound.
Sound velocity is generally larger in solids than it is in liquids. Sound velocity is larger in liquids than in gases, in most instances, because of the elastic constants of the materials. Sound is a local disturbance between particles, and this disturbance propagates a longitudinal wave. Since the molecules are dense in solids, they can collide quickly, causing sound to travel faster. The molecules in liquids are closer than they are in gas, making sound travel faster in liquids than in gases.