If either of these components has stopped working properly, replacing this charging port board should solve that issue.
eBay