5v pin not working when using the usb port

Hi
I own an arduino uno. Recently as i was working with it i found that no 5v pins on the uno was giving any output when i try to power it with usb.
On the other hand when i use the vin pin the 5v gives output.same with the 3.3v pins.
It was working fine till a couple weeks ago.

(deleted)