rhea_779 wrote:
I have tried rebooting ,power button + p + r and power button + r also it's still the same
These are not the special key commands and will not do anything. I don't know what special startup events you were trying to trigger here. The only time the power button is included for any special event is for powering on, forcing a power off, wake from sleep, and when performing an SMC Reset (or with a 2018+ model to enter DFU Mode). When performing an SMC Reset the "R" and "P" keys are not involved.
The "P" + "R" keys seem to indicate you may be trying to perform a PRAM Reset which would be Command + Option + P + R.....the power button is not involved except to first power on the laptop if it is already powered off.
I just examined the I/O Board for a 2017 MBAir and its headphone jack is the newer style which does not have the known failure issue. The I/O Board could still be bad.
You can try running the Apple Diagnostics to see if it reports a hardware issue.