I have an iPhone 3gs (AT&T) and I got straight talk and the data won't work on it?

On the phone it says that it has 3g but the data won't work, everything else works fine, I can text (but not sent/receive pictures). Any solotions

Did you set up the APN? Here's the settings for your APN: http://www.straighttalkbyop.com/program.php