A balloon pops when the pressure difference between the gas inside and the atmosphere outside exceeds the rubber's tensile strength. Three common causes push that difference over the limit:
Stretching the rubber beyond its elastic limit causes microscopic tears to propagate rapidly, resulting in a loud bang.
If a balloon is filled in a cool environment and then warmed (e.g., by sunlight or body heat), the gas inside expands, increasing internal pressure. Conversely, a balloon filled warm and then cooled can develop negative pressure, but the material may still fail if the rubber becomes brittle.
A sharp object creates a stress concentration that tears the rubber instantly, allowing the pressurized gas to escape violently.