Chosen Solution
I’ve tried to see if there’s any lint or anything else in my headphone jack and found nothing. if you have any suggestions on how to fix it, please tell me. Thank you
Headphone ports get “tired”. There are spring-loaded, mechanical contacts inside that weaken with use and environmental abuse. If you can confirm on another phone or device that your headphones are fine, then I would replace the Lightning Port/Headphone jack assembly. Follow this guide.