Sound propagates through the medium as a series of compressions and rarefactions.
When a vibrating object moves forward it pushes and compresses the air in front of it creating a region of high pressure (compression). When the vibrating object moves backward it creates a region of low pressure (rarefaction)
Because the particles of the medium vibrate in a direction parallel to the wave's propagation direction, sound waves are called longitudinal waves.