When you receive a notification on the iPhone–say, for a text message–you don’t have to unlock your phone to respond to it. You can actually respond to all sorts of notifications from the lock screen, no unlocking needed.
Not only can you respond to text messages, but you can also respond to reminders, events, Facebook messages, and more. Basically, if it pops up on your lock screen, you can probably deal with it from there.