How does a bond forms between soduim and chlorine in soduim cloride?

it's an ionic bond. sodium donates its e- to chlorine and you have a bond.