Metal usually donates electrons. The concept behind this phenomenon is stability. The elements with the most stable electronic configuration are the noble gases in Group 5A. As a result, the other elements donate or accept electrons so that they would be like the noble gases. Since metals are past their nearest noble gas element, they have to shed their electrons. When they do, they become cations which are positively charged ions.
Because they are closer to the farther end of the periodic table. Since they are closer to the farther end they don't want to give away their electrons because it would be easier for them to just steal them from other atoms.