Not all USB-C cables support charging the laptop.
Try running the Apple Diagnostics to see if any hardware issues are detected.
If you have an Intel Mac, then try an SMC Reset.
Try unplugging the charger from the electrical outlet for a minute to reset the charger's internal circuitry.
Here is an Apple article for troubleshooting USB-C charging issues:
If your USB-C power adapter isn't charging your Mac notebook - Apple Support
If these things don't help, then you may need to have Apple or an Apple Authorized Service Provider examine the laptop.
Edit: Don't skimp on accessories or peripherals you connect to your expensive computer. Cheap (both cost & quality) no name items tend to be dangerous to both you and your connected hardware. Amazon has tons of cheap poorly made items that should be avoided at all costs. Years ago a Google employee discovered that lots of charging cables purchased from Amazon would damage his Android phone. When he investigated further (he was an electrical engineer IIRC) he found that even some name brand cables did not properly adhere to the standards. It is very easy to destroy a Logic Board on a USB-C Mac by using poor quality items.