This muscle, like all muscles, can spasm causing the symptoms you are describing. Gum chewing, teeth clenching, stress
etc. Can all aggravate the muscle causing pain. Try a soft diet
medications and ice to the side if your head. If not a lot better in a few days see an ENT doctor and your dentist.