The iPhone 5 doesn't have the "motion coprocessor" (added in 5S), so it's unlikely that it will gather this data without a third-party app.
When I experimented with my FitBit I had to exaggerate my vertical motion when going up and down stars to get it to register well. It seems I'm too 'smooth' walking up and down stairs to reliably trigger the mechanism.