I would need more information but there are different things you could try such as checking on the peripheral drivers as they could be outdated so they will need to be updated but otherwise just check the USB port and the cable
It might be a problem with your USB port. You might've shook a USB cable too hard and caused your USB port to break. Try connecting your mouse to a different USB. This is one of the only fixes that does not require downloading extra applications.