Hi
Your problem is not software .. its purely hardware ..
Disassemble your phone again and carefull check every connector from water damage and clean it .. You can use microscoope and I am sure that you will fnd many places that has water effect and oxide ..