The ability to send or receive text messages while you have an active data connection is device dependent: the ability is supported by some devices such as the Huawei E220, but not others. Where a device does not support concurrent data connection and SMS, newly created text messages will stay in your outbox until the phone connection is free.

SMS and data connections