Hi
The problem is not with your phone, but with the friends whose texts you are not receiving.
Almost certainly they are not using SMS to text you but iMessage, which only works between iOS devices. They may not even be aware they are doing this. They'll need to check their settings to make sure they send messages to you via standard SMS.
Roger
(Thank you Hadron for this useful answer)