How to troubleshoot a Samsung Galaxy S6 that heats up when plugged in but not charging at all

Samsung Galaxy S7

Samsung to release a mini variant of the Galaxy S7 with a Snapdragon 820 chip