Solution 4 Restart your computer. Sometimes restarting the computer can solve the problem more or less. Please try to restart your PC and check if the USB cable can work or not. Hopefully these tips can be helpful for you when connecting your Samsung Galaxy Phone (also including other Android phones) to computer. If you have question about this
Use Android Phone as a Modem to run Internet on Your Computer Dec 04, 2019 Use Your iPhone To Connect Your Laptop Or PC To The Internet Jan 05, 2012
Unable to connect my phone to my laptop via bluetooth - HP
May 08, 2018 Use Android Phone as a Modem to run Internet on Your Computer Dec 04, 2019
Use the USB Cable that came with your phone to connect the phone to a USB port on your computer. Open the Notifications panel and tap the USB connection icon . Tap the connection mode you want to use to connect to the PC. Choose from the following options: Charge only, Media sync (MTP), Internet connection, or Camera (PTP).