I had the same problem as you. Even though it seems like there's no problem with the wire, I watched a video, but I forgot most of the explanation (keep in mind I'm dumb). But all I remember is there's four wires within the cord. Two of those are for transferring data and the other two are for charging. A lot of cords simply cannot transfer data. If that is not the case, try figuring out how to get your phone on developer mode.