Question: how to block a number on iphone?
Answer: To block someone who has been added to your phone's Contacts, go to Settings > Phone > Call Blocking and Identification > Block Contact. ... 
In instances where you want to a block a number that isn't stored as a contact in your phone, go to the Phone app > Recents.