Well, you have done the obvious things, to fix it, which are to clean it.
It could be a bent pin if it is a PS/2 mouse, or it could be dirt in the USB plug or socket if a USB mouse.
If it is a USB mouse, they fail much more frequently than the PS/2 mouse.
You can get a mouse for $10, or get a used one for $1.00