Unable to upload sketch in arduino uno

When you did that you erased the bootloader. You will need to do another Tools > Burn Bootloader in order to start uploading over USB.