|Assuming you have NOT dropped this computer and have NOT spilled liquid on it.....|
All your symptoms are caused by a poor USB connection.
Examine the USB ports and the plugs on the USB cable or other device you're using to to see whether they're damaged.
E.g. Bent - such that the fit of the plug is loose - stretched outer metal shell in the port, squished metal outer shell on a plug; bent or loose contacts in the port or plug, the plastic blocking plug that prevents you from plugging in a USB plug upside down is loose or missing.
If you're using an external USB hub, try plugged each USB device directly into ports built into the computer.
If you don't see anything wrong with the USB plugs or ports, if whatever you're connecting has a cord, wires inside the cord are probably damaged.