iPhone 5c Connected to Wifi but no Internet
So, I have this iPhone 5c running ios 10 something. Currently it does connect to wifi, the bars are there everything is fine, but it is saying it's not connected to the internet. Is there a wifi cable or something in the phone I might have broke? Because I have gone inside the phone before, recently broke the screen on accident. I want it to be fully working again, but I cant seem to get it to connect to the internet. I've tried restarting the phone, and ive tried to reset network settings. I'm afraid to reset it, because I dont want the whole device becoming unusable thanks to it being unable to activate because of the internet issue. I have connected this phone to wifi before and it worked perfectly fine, but now it's not working, help please!