You can block or unblock a number on an Android phone using the built-in Phone app's "Blocked numbers" menu.
Ever since I got a flip phone a long time ago I was surprised that I was not able to block numbers that weren't in my contacts list. Those dumb little phones were packed with 100 useless features, but ...