Need deleted data from locked phone
If your phone is unlocked, you can try using 'Recuva' software for recovering data from a deleted or formatted phone.
Although the Success of Recovery is not 100% and every file may not be recovered, but you can still recover most of the data which is lost (accidentally or purposely :p )