Your phone has gone into DFU mode and needs the OS restored. If you followed the instructions and connected it to a machine running iTunes or tried the restore option in Finder on a Mac and it didn’t detect the phone, then you may have some contamination on your Lightning port.
It sounds like you didn’t read the message correctly and overreacted by erasing your phone.