iPhone can't access internet/iMessage
Try rebooting the phone by holding both buttons simultaneously until the Apple logo appears. 

Restarting iOS will fix a lot of problems (as does restarting any computer) and should usually be tried as a first resort.