What the cause is depends on what the effect is.
The trigger being pulled is a cause that causes the hammer fall.
The hammer is a cause that sets of the powder.
The exploding powder is a cause that propels the bullet.
The impacting bullet is a cause for whatever effect is has on the target.