Zinc is more reactive than mercury. Hence, it displaces mercury from mercuric chloride solution. This mercury deposits on the zinc metal thus acquiring a shining silvery surface.
Zn+HgCl2→ZnCl2+Hg
No change is observed when zinc metal is placed in magnesium sulphate solution as zinc cannot displace magnesium from magnesium sulphate solution.