The coil charges while battery voltage through its coil's primary winding is grounded through points or whatever ignition.
The purpose of the points or whatever ignition is to ground and un-ground the coil's primary winding.
For example,
with a correctly functioning ignition system, when the points are closed, the coil's primary winding is grounded, which allows the coil to "charge."
When the points open, the coil's primary winding becomes un-grounded.
Such un-grounding is the event that causes the coil to fire high tension voltage throughout the secondary loop, thus discharging the coil and firing both spark plugs in the process.
Would suggest studying the above diagram -- slowly and with feeling
-- until it makes sense and sinks in.
An understanding of how a healthy ignition is supposed to function is usually helpful toward diagnosing and pin-pointing the ignition component that's faulty in the bike at hand.
There are many possible reasons for ignition failure, But whatever the reason, it's usually due to something amiss in the system as diagrammed above.
Good Fortune!