If your phone qualifies, you can have it fixed and have a loaner iPhone from Apple for the duration
A sleep/wake button problem has been attributed to the iPhone 5 and this new fault in the phone might possibly render the button useless. However Apple has showed its concern and has rolled out a program in order to help those who have been affected by this fault. The problem is only present in a small percentage of iPhone 5 handsets which were made after March 2013. You can find out if your iPhone 5 handset qualifies as a faulty set and then you can apply for the replacement hardware by inputting your iPhone’s serial number at the support site created by Apple specifically for this program.
Apple has suggested that users should check their devices for the sleep/wake button and it must be seen whether the button has stopped working altogether or whether it works inconsistently. If your phone qualifies then you are all set to have your handset repaired from either the Apple Store or an authorized service provider. There is also another option available in case you don’t want to go anywhere in person; send your iPhone for the treatment via mail. Wait till you get to the best part. Apple is also giving away loaner iPhones in 16 GB variants and you can use these while your iPhone is away for a fix.