I can watch previous recorded media on the gopro, but connect with the cord to my pc and it does charge the gopro, I have tried with the gopro on and off.
Are you working on a Windows computer?
See if this works: go to Device Manager> Find GoPro> Select "Disable" then "Enable"
Once done, please try again.
Here are other ways to Import Camera Files to a Computer - Windows 10
Let us know how it goes.