Wireless
Why this works:
It’s possible that the problem isn’t your phone at all, but instead you charging cable. If your Pixel’s charging cable’s retained any damage recently, it may be unable to provide your phone the with power it needs.
Pro tip:
Another way to check if your charging cable’s the problem is to try plugging your Google Pixel into another charging cable. If your phone charges when plugged into one cable and not the other, it’s probably the cable that’s interfering with your Android’s functionality.