Update your mouse drivers. You can do this by going to the Device Manager, finding your mouse under "Mice and other pointing devices," right-clicking on it, and selecting "Update driver."
Check if the mouse works on another computer to determine if the issue is hardware-related.
Try using a different USB port or connecting the mouse via a different method (e.g., Bluetooth if it's a wireless mouse).