For several reasons, you might have received a green message bubble rather than a blue one. One of the causes might be that the person you're attempting to contact has his iPhone turned off or that your iMessage is momentarily inaccessible. To learn more about why this occurs, read Apple's support article.