Stretch a slinky along a table and give one end a quick push forward and pull back. A bunch of tightly squeezed coils, a compression, runs along the slinky, followed by a region of spread-out coils, a rarefaction. Tie a ribbon to one coil: it shuffles forward and back a little and ends where it began. The coils move along the same line as the wave, which is what longitudinal means.
Sound works the same way. A speaker cone pushes forward and squeezes the air in front of it into a compression, then pulls back and leaves a rarefaction. Each layer of air pushes on the next, so the pattern moves out at about 343 m/s while each air molecule only jiggles back and forth. The distance from one compression to the next is the wavelength: a 343 Hz tone has compressions 1.0 m apart.
Graphs can mislead. Plot air pressure against position and you get a wavy curve with peaks at the compressions, which looks like a rope wave. Those peaks mean high pressure, not air lifted upward. A longitudinal wave also needs no sideways stiffness, only resistance to squeezing, so it can travel through the inside of liquids and gases, where transverse waves cannot.
Think of it like this. A longitudinal wave is a shove passed down a crowded line of people: push the person at the back and each one stumbles into the next and steps back, so a crush travels to the front while everyone ends up where they started. The crowding moves along the same line as the shove. Real molecules spring back by themselves; people have to choose to.
Core idea. In a longitudinal wave the medium is squeezed and stretched along the direction of travel, so the wave is a moving pattern of compressions and rarefactions that can cross solids, liquids and gases.