The blue texts have been sent as an iMessage, which only works between Apple users. A green message indicates it has been sent as an SMS text, and the reason could be due to no Internet connection, or the recipient is not using iMessage.