Without any further info, perhaps one of these articles will help:
If you get an error when trying to activate iMessage or FaceTime - Apple Support
If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
If you can’t receive text messages from an iPhone - Apple Support