Well if you can access the phone files from pc then it is clear that USB cable, and ports are fine.
Now it comes to the settings in your phone, when the phone is connected to the PC, then it prompts how to connect, select USB tethering or exchange data/ files
Else go to settings under
wireless...