How to check how much data i have left on my iphone 4?

I have AT&T and whenever i dial 3282# it just goes on to a screen saying USSD and my phone number. Why don't i get the text that sends me the data?

Try getting the AT&T app on the App Store, just sign in with your AT&T account and it should tell you how many texts/mis/data you have got left.