Why does my jaw randomly hurt and then pop?

TMJ. This sounds like a problem with your TMJ joint (the jaw hinge joint). Most likely inflammation that can be caused by multiple things such as grinding your teeth at night. Ask someone if you do! I tell patients to try a soft diet, nsaids, and a warm compress when the pain is bothersome. If it continues consider, seeing a dentist that is comfortable treating TMJ disorder.