Duane is right. The charging port you brought is defective. The mic might work but you need the thermal sensors to communicate with the CPU and they obviously are not. The only other part that could be causing this behaviour is a faulty battery but I would put my money on the charge port.
There is a video here on the problem of aftermarket [link|https://www.youtube.com/watch?v=EIBHIhzRbI8&t=530s|charge ports on the 11 series.]