A bit more information will be helpful.... do you have a network signal? Try removing the SIM card, power down the phone, reinsert the SIM and then restart the phone.
Did you recently port your number from another carrier (it can take a few days, sometimes, before the port is complete and all features function properly).
Is this a new phone, or a new account? Call customer service and check that text messaging is properly provisioned on your account.