WiFi was working now it’s not connecting, any ideas!?

That’s what I have been trying to do and it won’t connect. I actually got it to connect once and it said it connected but the app still showed it was offline.