Hi there SAwais,
It sounds as though you're experiencing shorter battery runtime as well as noticing your phone becoming warm when on a charger. You're in the right place to seek a solution and I'd be happy to assist.
Below is a resource that can help:
About the battery usage on your iPhone, iPad, and iPod touch
First, this resource can assist with checking the amount of battery used by each app to see if there could be an app using more than it should.
Next is a resource that provides additional information on the battery and performance in iPhone:
iPhone Battery and Performance
This resource provides great information on the battery inside your iPhone as well as details on how to check information such as Battery Health.
Finally, below is a resource that can provide information on acceptable operating temperatures for iPhone, iPad, and iPod touch:
Keeping iPhone, iPad, and iPod touch within acceptable operating temperatures
I hope this helps,
Cheers!