What is the difference between the 2G and 3G iPhone?

The only difference is the network that it runs. The 2G iPhone is slower when you are browsing the internet, while the 3G has a faster network. Also, the iPhone 3G has more of a 'slimmer' feel to it, though technically slightly thicker.

Other than that, there is no major differences, and they both run the same software.