A mechanical wave requires a material medium for propagation. Sound travels through vibrations of particles in solids, liquids or gases and therefore cannot travel through a vacuum. Gamma rays, X-rays and radio waves are electromagnetic waves and can travel through vacuum.