Question: why is my iphone getting hot and not charging?
Answer: If you notice that your iPhone gets hot when you charge it, Apple advises that you should remove it from its case before charging. Also ensure that you are using either a genuine Apple cable or an Apple-certified / MFi cable. If you are already doing so, try instead using another such cable.