A particle spins around the reference circle on the left; its up-and-down projection (dashed line) is what draws the sine curve. Particles on the wave itself oscillate perpendicular to wave direction (like water waves).
Longitudinal Wave
Particles oscillate parallel to wave direction (like sound waves)