Sound can travel through all different kinds of matter (solids, liquids, and gasses), not just air.
Sound cannot travel through an empty space with no matter; sound needs matter to travel.