If the card was working fine, then suddenly no longer detected and no output, it's not a driver issue.
Make sure the BIOS setting for primary display is correct. Check whether the card has correct power connections, fan(s) spin. Check other outputs and cables. As a last resort you could try the card in another system.
Ryzen R7 5700X | B550 Gaming X | 2x16GB G.Skill 3600 | Radeon RX 7900XT