Use the compass with maps on the iPhone.

To do this:
Tap the Location button in Maps twice to use the built-in compass so you can orient the map based on the direction you are facing in.