An SMS failed to be sent and when I checked out the details the last line said "Error code 331".
What does this error mean ?
Error code 331 is an error that you would get back from the SMS gateway. It means: No network service is available.
If you continue to get that message, I suggest you call your carrier.