The answer is: lose electrons and form positive ions.
Most metals have strong metallic bond, because of strong electrostatic attractive force between valence electrons (metals usually have low ionization energy and lose electrons easy) and positively charged metal ions.
The ionization energy (Ei) is the minimum amount of energy required to remove the valence electron, when element lose electrons, oxidation number of element grows (oxidation process).
For example, magnesium has atomic number 12, which means it has 12 protons and 12 electrons. It lost two electrons to form magnesium cation (Mg²⁺) with stable electron configuration like closest noble gas neon (Ne) with 10 electrons.
Electron configuration of magnesium ion: ₁₂Mg²⁺ 1s² 2s² 2p⁶.
Salt solution such as sodium chloride (NaCl) conducts an electric current because it has ions in it that have the freedom to move about in solution. ... On the other hand, sugar solution does not conduct an electric current because sugar (C12H22O11) dissolves in water to produce sugar molecules