it was working anywhere then all of a sudden stopped?
You need a Wi-Fi network in the area to be able to use Wi-Fi connection. You may be using data connection when you though it was working anywhere.