Welcome to HEALTHCARE MAGIC..
I have gone through your query and can understand your concerns..
As per your complain there is a possibility that you might have eaten something very hard that has lead to inflammation of these areas leading to soreness and swelling..
Secondly it can also be due to eating something very hot or can be due to allergic reaction
to any food or medication..
As of now you can take anti-inflammatory painkiller like Ibuprofen
You can also do cool compresses over the area..
Avoid eating any hard or hot foods..
Dink plenty of cool water and take a soft bland diet..
If still there is no resolution or the condition worsen consult an Oral Physician and get evaluated.
Hope this information helps..
Thanks and regards.
Dr.Honey Nandwani Arora.