Loopback test is about USB/serial transceiver. It is not about the main UNO chip ATmega328P so trying to program it via ISP does not help. Maybe you have just created another problem.
USB/serial transceiver on genuine UNO R3 is ATmega16U2 or CH340 on Chinese clones - usually.
Be sure you have driver, device visible in OS an then carefully follow the instructions for loopback test, and then provide some output and more details like terminal type.
If you are sure that loopback test failed, something is probably damaged in USB/serial transceiver or power circuit.