S6 edge plus usb not recognized problem

I have a S6 edge plus when I connect it to pc it shows error and will not connect, either in download mode or usb debuging mode,
Already changed usb flat charging and connector on mainboard but no success
anyone has a solution for this?