A wave in which the vibration of the particles is along the direction of propagation of wave in a to and fro fashion is called longitudinal wave whereas a
wave in which the vibration of the particles (in case of mechanical wave) is perpendicular to the direction of propagation of wave is called a transverse wave.
Sound is produced when object or molecules or particles of the medium vibrates. Therefore it can be defined as any disturbance that propagates through an elastic medium like air, ground, or water. Sound propagates through these compressible media as longitudinal waves and also as a transverse waves in solids media.
Through solids sound can be transmitted as both longitudinal and transverse waves i.e vibration of particles are either along the direction of propagation or perpendicular to the direction of propagation of wave.