What causes cramps or pain in the temporalis muscle?

Chewing. Do you chew gum? Do you have tmj? How long has the pain lasted? What caused the pain to start? What have you tried to relieve the pain? Best to see a doctor.