When is the total momentum of a system conserved?

When is the total momentum of a system conserved?