Just in case, try ruling out a defective charging cable by trying a new/different cable. You can also try a new/different charging block.
If the issue still persists you may be able to replace the part yourself using [link|https://www.amazon.com/HUIFANGBU-Charging-Board-Ulefone-Armor/dp/B08TVKYRCS|this|new_window=true] part (this is an example of what it should look like, feel free to search around on your preferred eCommerce site for one that is cheaper or available sooner).
Generally this video should guide you in the right process: https://youtu.be/-FHUmqGupcM