Try to install some app from the market which showing battery temperature. Original battery have temperature sensor to prevent overheating. If it's broken and showing significantly higher value, it may force shutdown to prevent damage to phone.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?