You could have a tooth infection, sinus infection, sore elevator facial muscles.
Less common would be a tumor or cyst. A dentist can help rule out if it's being caused by a dental infection. A clinical exam and a panoramic x-ray can help rule out if it's a tumor or cyst. If the dentist rules all those out, then you may need to consult with your medical doctor.