Taking into consideration your age and the position of tooth, there can be two possible reasons -
1. Partially impacted third molar - meaning a wisdom tooth is blocked under the soft tissue and bone . Erupting third molars (wisdom teeth coming out) are usually painful. Also on biting , the soft tissue falls between the teeth, gets hurt, starts paining.
Maybe an infection has also set in - can be either in the tissue or both soft tissue and teeth.
2. Completely Erupted third/second molar - has grossly decayed or fractured.
Next Steps
Consult a Maxillofacial Surgeon. Get the area assessed. This is definitely a dental problem, so you do require treatment to resolve it. Please do not take painkillers and ignore or postpone the treatment.
Health Tips
Warm saline rinses and soft diet will help relieve your pain.