@OP, clear cache, clear data and do a factory reset. Take out the battery clean the contacts.
The overheating can mean either of two things:
1. the CPU is stuck in the high performance mode
2. The battery is overheating
Now if the CPU is stuck at high performance mode (1.2 ghz), it may be...