When a battery runs down (goes flat), it's because all of its electrical charges have been lost or used up:
CREATION AND LOSS OF ELECTRICITY:
Batteries don't make any electricity
Generators don't make any electricity
Solar cells don't make any electricity
Fuel cells don't make any electricity
Rubbing fur on plastic doesn't make any electricity
VandeGraaff machines don't make any electricity
If all of the above devices don't make electricity, then what DO they do?
Simple. All of them are electricity pumps.
When a battery runs down, it's because its chemical fuel is exhausted, not because any charges have been lost. (A battery is just a Fuel Cell that keeps its chemical fuel on board).
Batteries are charge pumps. They just force the charges that are already inside the wires to flow along.
When you 'recharge' a battery, you are pumping charges through it backwards, which reverses the chemical reactions and converts the waste products back again into chemical fuel.
If the above conflicts with some teaching resource you may find, remember that most K-12 textbooks define electricity very differently than scientists do (The core teaching resources used for this quiz explicitly nominate the use of the 'scientific definitions' to be taught in Australian schools).
In scientific terms, 'electricity' means 'charge'.
CAN WE CREATE ELECTRICITY:
Electricity is a fundamental property of matter, so in order to create electricity, we have to create matter. The positive and negative charges of electricity are permanently attached to the electrons and protons in atoms.
To make electricity we'd have to create protons or create electrons! There is no easy way to make electric charge out of thin air. It's not impossible though. If you have a gigantic particle accelerator at a physics laboratory then you can create new charged particles.
The same thing happens naturally in radioactive materials and when cosmic rays from space strike atoms down here on earth.
But other than that, and no matter what advertisements you may see to suggest the contrary, it's not possible to make any electricity.
If a textbook says that electric generators make electricity, that textbook is using the word 'electricity' in an unscientific way.