Protons are positively charged. Neutrons have no charge. Electrons have a negative charge. Protons and neutrons are in the nucleus. Electrons revolve around the nucleus.
If a metal is less reactive than carbon, it can be extracted from its oxide by heating with carbon. The carbon displaces the metal from the compound, and removes the oxygen from the oxide. This leaves the metal.