Sound waves move by vibrating objects and these objects vibrate other surrounding objects, carrying the sound along. This happens in the form of compression and rarefraction and this will create pressure and density variation in the medium. Due to which the sound can travel.