Well… you likely have two issues, the first is a bad port assembly, if you have the patience I would remove the port to see if it’s damaged or just needs cleaning. If damaged here’s the part [product|IF464-019]. You’ll will need to pull the logic board to gain access following this guide [guide|150899]
Sadly, your logic board likely needs repairs as well, after you reassemble the system test things again if it’s not better it’s time to get your logic board fixed. Here’s a deeper review on what will be needed: [https://www.youtube.com/watch?v=FTMjdqHbmqs|Fastest 2021 Macbook Pro "No power" Repair].