A loose socket where the plug falls out or wiggles can overheat.
Signs:
1. Plugs fall out or sit at an angle.
2. Charging stops and starts.
3. The socket feels warm or has brown marks.
4. Crackling sounds or a burning smell.
What to do:
1. Stop using that socket.
2. Have an electrician replace it.
3. Don't wedge plugs with paper or tape.
Many "phone not charging" problems are really a bad socket.