If you mistakenly blocked a contact or want to unblock a previously blocked spam number, you can easily reverse the process:
Open the Settings app on your iPhone.
Scroll down.
Select Phone.
Tap on Blocked Contacts
Locate the number you want to unblock.
Swipe left on the contact or number and tap Unblock.