looks like you have 3 impacted molars, and 4 missing premolars (i.e. 2 in upper jaw and 2 in lower) OR you got them extracted most commonly for braces treatment .If you had ever undergone an orthodontic braces treatment that may be the cause of your pain in jaw (i.e. due to incorrect bite relationship)
Next Steps
Get your impacted molars extracted form an oral surgeon and then go to a good orthodontist.He will examine the bite and may correct the bite OR give you an occlusal Splint to wear on your teeth for TMJ pain relief and will stop further progression.