router will refuse connection if too many devices are connected.
that could be the problem.
but if not.. try connecting to a mates internet. if it doesnt work.. the iphone has a software problem... if thats the case.. restore it with a different FW..if still doesnt work... drop kick the iphone.