Sound travel faster in metal than air becoz molecules of metal i.e solid are closely packed and it will take less time for sound waves to travel from one molecule to another whereas in air i.e in gas,molecules are far apart so it will take more time for sound waves to travel.In case of vacuum there are no molecules at all so sound is not there.that is why in space we cannot hear anything.
HOPE THIS HELP<3