Mechanical waves transport energy through the vibration of particles in a medium. In a vacuum, there are essentially no particles to vibrate, so mechanical waves cannot propagate.