Magnesium is the element at the top of the activation table. The value of its oxidation potential is more negative i.e. it is easily oxidized. But the position of copper is below H2 and the deposition potential is positive. On the other hand, the value of oxidation potential of zinc is relatively low. So copper and zinc cannot convert H + ions in water to H2 gas. But magnesium degrades H + ions. So only magnesium reacts with hot water.