Iphone got too hot and won't turn on?

I just bought this phone off ebay the original owner of the phone said that it got really hot and wouldnt turn back on i just realized it when the phone shipped to my house, is there anything i can do to fix this?

This might help you with your battery life:
http://www.apple.com/...phone.html

Especially note this section:
Let it breathe
Charging your iPhone while in certain carrying cases may generate excess heat, which can affect battery capacity. If you notice that your iPhone gets hot when you charge it, take it out of its case first.

Also, make sure you "quit" any apps that are running but you are not using at the moment.

Leave your phone for a day or two, then try turn it on. If it dosen't try contacting Apple or visit the Apple store and tell them the problem, hopefully they will be able to fix it!