If the connector where the charging port/mic connect to main board has debris it can cause the issue. Double check the connector.
open