My iPhone 7's charger only works in certain outlets around the house?

There's nothing wrong with the outlets as i tested them with other electronics and they all work fine. This is really strange since i've always been using these outlets and all of a sudden they don't work. So is the problem from my charger or what?

1- maybe they got oxidized…
you may clean them with a dry contact cleaner spray but.
TRAP THE MAIN BREAKER BEFORE CLEANING AND KEEP FOR A HALF OF A DAY… To evaporate their alcohol.
2- maybe the charger plug wires are loose connection… Inside…

The nonfunctional outlets should be replaced with better ones.

  • Why does my iphone charger only work in certain positions? My iPhone 5 charger only works when it's in a certain position, and sometimes it doesn't even work in that position. Why?
  • Why does my iPhone charger only work in certain outlets? My charger for my iPhone 4S only works in certain outlets. It used to work in all in fact this morning it worked and then I went to go charge it a few hours later in the same outlet and it didn't work.
  • Water damaged Iphone 4s only works when plugged in to charger? So, I have a water damaged iphone 4s that works perfectly fine, except for the fact that it only turns on when it is connected to a power outlet. The screen works fine when connected and I can access menus and videos and such, but when I unplug it, it immediately turns off. I already changed the battery from another iphone to this one, but it still does the same thing. Anyone know what to do?
  • My outlet burned out and now none of my outlets in my room work, what do I do? Last night I left my iphone charging in my room I have a little mini metal hand cuff That I threw and got caught on the metal part of my iphone power adapter, then I saw sparks and I heard a pop. I turned and I saw my outlet was burned around it and now none of my outlets work in my room help what do I do!