This common problem may be related to the previous problem. An overheated phone is sometimes associated with your phone's battery. But, it can also be related to your charger and the place where you normally have your phone. If you are experiencing this, you should fix it soon because your battery and your phone may be seriously affected.
You should try the possible solutions given previously and see if the problem is directly related to your battery problem. If it continues to overheat, try to take your phone in a cool place and keep it away from the heat of the sun. You can also give your phone a few minutes to "refresh" and reuse it.