In my opinion, you have cavities in both your upper as well as lower teeth.Although the decay with your upper tooth looks deeper, lower tooth could also be causing the pain.
Next Steps
You would need to visit a dentist and get your root canal treatment done as early as possible.
Health Tips
Avoid having cold and sweet things. Also avoid eating on that side for the time being.