Power is supplied to the vehicle by two devices: The battery and the alternator. The battery supplies electrical power during starting or during periods when the current demand of the vehicle's electrical system exceeds the output capacity of the alternator. The alternator supplies electrical current when the engine is running. Just not does the alternator supply the current needs of the vehicle, but it recharges the battery.
In most modern vehicles, the battery is a lead/acid electrochemical device consisting of six 2 volt subsections (cells) connected in series, so that the unit is capable of producing approximately 12 volts of electrical pressure. Each subsection consists of a series of positive and negative plates held a short distance apart in a solution of sulfuric acid and water.
The two types of plates are of dissimilar metals. This sets up a chemical reaction, and it is this reaction which produces current flow from the battery when its positive and negative terminals are connected to an electrical load . The power removed from the battery is replaced by the alternator, restoring the battery to its original chemical state.
On some vehicles there isn't an alternator, but a generator. The difference is that an alternator supplies alternating current which is then changed to direct current for use on the vehicle, while a generator produces direct current. Alternators tend to be more efficient and that is why they are used.
Alternators and generators are devices that consist of coils of wires wound together making big electromagnets. One group of coils spins within another set and the interaction of the magnetic fields causes a current to flow. This current is then drawn off the coils and fed into the vehicles electrical system.