The joint itself is part of the skull. And in that the muscles that control the TMJ encompass most of the entire side of the face and skull; spasm and tension in this area commonly leads to headache.