First, are you sure you properly connected the device to wifi in the settings? Take a look at these steps to make sure. If you are connected, but still can't load any web pages, you should try resetting your router.
A few things can be wrong here. Your battery could be dead or your display could be broken. If its neither of these things, you may have to perform a factory reset. Refer to this link for help with any of these issues.