Check the port for debris or damage: Sometimes debris or damage can prevent the port from working. You can use a flashlight to check the port for any visible debris, and try to blow it out with compressed air.
Check the cable or adapter: Ensure that the cable or adapter you are using is compatible with your MacBook. You can try using a different cable or adapter to see if the issue is with the cable, adapter, or MacBook.
Restart your MacBook: Restarting your MacBook can sometimes fix issues with the Type-C port not working.
Reset the System Management Controller (SMC): Resetting the SMC can sometimes fix issues with ports not working. To reset the SMC, shut down your MacBook, hold down the Shift + Control + Option keys and the Power button for 10 seconds, then release all keys and turn on your MacBook.
Update your MacBook: Ensure that your MacBook is running the latest version of macOS. You can check for updates by clicking on the Apple menu > About this Mac > Software Update.
Reset NVRAM or PRAM: Sometimes resetting the NVRAM or PRAM can fix issues with ports not working. To reset NVRAM, shut down your MacBook, then hold down the Command + Option + P + R keys while turning it on. Hold these keys until you hear the startup sound twice.
If none of the above solutions work, the issue may be with the hardware. In this case, it is recommended to contact Apple Support or take your MacBook to Esmond Service Centre