My iphone's sleep/wake button is broken, is there an app to put the phone back to sleep?

Iphone Vers 2.2.1

Thanks =]