Various allergies that attack insides of the mouth, ear infection, tooth abscess, mouth ulcers, diabetes, menopause, perimenopause, poorly fitting dentures, oral thrush, dry mouth, herpes, canker sores, vitamin deficiency, mineral deficiency, eating very spicy food, eating very hot food, chewing tobacco, and smoking are some reasons for roof of mouth pain.