Why is an element metal/ non metal?

State the electronic configuration of element.
For metal - It loses___ valence electron(s) to form positively charged ion, which is typical of metallic elements,  in order to obtain noble gas electronic configuration.
For non-metal - It gains ____ valence electron(s) to formed negatively charged ion, which is typical of non-metallic element, in order to obtain noble gas electronic configuration.