Make sure you have a good WiFi signal. You may need to move closer to the WiFi source (router or hotspot).
Make sure you're using the correct password for your WiFi. Be attentive to letters and numbers that can look the same such as 1 (one), l (lowercase L), and I (capital i).