To activate iMessage and FaceTime using your Phone number
- First, check to know whether you have an SMS plan enabled for at least One SMS*** with your carrier. Contact your Carrier (Cellular Service Provider) the agency that issued the SIM to you
- If your iPhone is used with a carrier not found in the wireless carrier articles, make sure you can send and receive international SMS. (One international SMS*** Only)
- If you can't turn on or sign in to iMessage or FaceTime - Apple ...
*** You may not have an SMS plan (Domestic & International) enabled by your carrier for the SIM/eSIM that you use on your device. Apple Inc does not provide SMS services.


iMessage (Blue) -
- iPhone to iPhone: requires internet (Either over WiFi or Cellular Service) as it is sent over internet protocol. Needs Activation on your device.
- iPhone to Android: Not available

SMS/MMS (Green) -
- iPhone to Android: does not require any internet it is sent over cellular voice protocol. Needs to be enabled by your Carrier for the SIM used by you.
- iPhone to iPhone: When iMessage is not activated or the device is not connected to the internet either over cellular or WiFi
- You need to have an SMS/MMS plan enabled by your carrier for the SIM/eSIM that you use on your device. Apple Inc does not provide SMS/MMS services.

It will turn from Blue to Green if you have enabled "Send as SMS" and whenever your iPhone is not connected to the internet it is sent as SMS (green) to all iPhone users.

It's possible that you used your Apple ID to send the iMessage, while the recipient might have replied using your phone number. There's a chance that iMessage isn't activated for your phone number on your device.
Activate iMessage and FaceTime using your… - Apple Community