Covalent bonds are formed when two atoms share electrons to achieve a full outer shell.
Metallic bonding occurs due to the strong metallic lattice structure, where metal cations are surrounded by delocalized sea of electrons.
Ionic bonding is the electrostatic attraction between oppositely charged ions.
Ionic bonding occurs between metals and non-metals, where the metal loses an electron and becomes positively charged (cation) while the non-metal gains an electron and becomes negatively charged (anion).