Is there actually a WiFi signal in range? If you know there is, and the phone does not see it, could be a bad phone, contact your service provider for help with getting it fixed or replaced.
Sometimes taking out the battery for 15 seconds or so to reset it can fix things.