Mega not working

I have a mega that I purchased awhile back, I plugged it in and did a test upload. Everything worked fine, and I put it away until needed. Well I drug it out the other day and for some reason I cant get it to work! This is the error message It gives me.
“avrdude: stk500_getsync(): not in sync: resp=0x30
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51”

Any ideas??

Never mind I tried a different usb cable and all is well.