Answer:
.Magnesium has a higher melting point because magnesium ions are Mg2+ and sodium is Na+. Magnesium ions have a stronger positive charge so the attraction to the delocalised electrons is stronger. There are also more delocalised electrons in magnesium than there is in sodium