The iPhone was a software innovation that was years ahead of the industry at the time, enabled by that one hardware innovation that you’re sounding rather dismissive of.
Again, there were existing app ecosystems on Symbian/Nokia and Windows, and none of that stuff, or anything like it, ran on an iPhone. You couldn't even get your email on the device outside of a handful of open source web clients (its inability to run the gmail client was a big hole, heavily reported at the time).
[0] https://www.theverge.com/2013/12/20/5229618/android-started-...
Totally false. The first iPhone shipped with Mail, which handled POP and IMAP accounts very well, including gmail accounts.