TMJ pain is often caused by teeth clenching and jaw grinding, which many people do unconsciously in their sleep. These patients may wake up in the middle of the night or in the morning with sore jaws and headaches.