When an object vibrates, it forces the neighbouring particles of the medium to vibrate. These vibrating particles then force the particles adjacent to them to vibrate.
In this way, vibrations produced by an object are transferred from one particle to another till it reaches the ear.