RFID-RC522 problem

Solved

What is "the power supply from Elegoo"? How was it wired to the Arduino and/or reader (during the different stages)?

If the same code worked before with the same connections (I assume you did not change the connections between the reader and the Arduino), there is a chance that you blew up one of the two or both.