In both transverse and longitudinal waves; energy is transferred in form of a wave.
The difference between transverse and longitudinal waves is that:
In transverse waves; the displacement of the medium is perpendicular to the propagation of the waves.
In longitudinal waves; the displacement of the medium is parallel to the propagation of the waves.