If right-clicking only works in Windows Explorer, you can restart it to see if that solves the problem:
Press Ctrl, Shift, and Esc on your keyboard at the same time to open Task Manager.
Click Windows Explorer -> Restart.
Hopefully, your right mouse button is now alive.