If you were able to before and this just happened, check in the network settings and make sure is on the proper network.
Also, make sure the phone is not on airplane mode.
It would help if we knew what phone are we talking about.
Good luck and let us know what happens.