Sound is a form of energy that is produced when a body vibrates.
The particles of the medium do not leave their position but vibrate about their mean position.
For example, when a loudspeaker is switched on, a membrane in the loudspeaker vibrates and moves backward and forward. This causes the surrounding air particles to vibrate.