So many different causes for this type of problem.
The internet is a terrific place for looking up information, asking for advice, and sharing pictures.
Unfortunately, it cannot replace a physical exam by a medical professional. It would not be prudent for anyone to diagnose, sight unseen, a condition such as you described without a physical examination. For this reason I am going to suggest that you have it looked at by an oral surgeon in your area so that it can be properly diagnosed and the correct course of treatment can be prescribed.