Ok so I came to the states with my UK iphone would it automatically connect to AT&T?
With your UK mobile chip you should be able to roam in the U.S. Your mobile phone company can tell you how much that costs.
If you're thinking in terms of just getting an AT&T chip, AT&T does not make it easy to use an iPhone on prepaid service. (You would have ask others about that.) Additionally, your phone must be unlocked before you could use another company's chip, including AT&T's.
No I mean because AT&T are the only ones who sell the iphone im guessing due to some of the functions etc would it automatically connect to AT&T or could I have an iphone in the states connected to a network who doesnt support the iphone directly from the states if that makes sense?
No I mean because AT&T are the only ones who sell the iphone im guessing due to some of the functions etc would it automatically connect to AT&T or could I have an iphone in the states connected to a network who doesnt support the iphone directly from the states if that makes sense?