IOS 4.0 is slow on iPhone 3G!
iOS 4 is laggy for most people who have the iPhone 3G. I have since downgraded back to 3.1.3. It’s much more usable even without all the new features. So if you upgraded to iOS 4, I highly recommend you downgrade.
Please follow the instructions here:
http://www.iphonehacks.com/2010/07/how-to-downgrade-iphone-3g-from-ios-4-to-iphone-os-3-1-3.html