You mean you have switched Contacts in iCloud settings? If so, they will appear again after you reinstall iOS. You could go to icloud.com to view your contacts or save them to computer.
View attachment 910351
If you block a number in Settings, it would not be changed only if you use iCloud backup to do a fresh install. If you don't have an iCloud backup, I think you need to block that number again.