Looking at the picture , it seems to be an ulcer .
There are various causes of an ulcer , such as trauma, nutritional deficiency ,viral infection etc .
You must get it checked by a dentist as only after proper physical examination he will be able to come to a correct diagnosis.
Next Steps
Visit a dentist as soon as possible and get a correct diagnosis done.