They told me to dial *228 or something like that. They told me to reboot the iPhone. They also told me to go to settings and Reset Network Settings. And that's all they told me. Then they sent us a new iPhone but now my new iPhone is having that problem.
Ok I think it's a problem with my router. I went to my cousin's house and the Wi-Fi worked there perfectly. I was even able to download many apps. So I guess my router probably can't take in more connections. Oh well thanks anyway.