First, you have to check whether your iPhone is locked completely or not. Then find out if you have made any back up with iCloud, iTunes or any third party software. Create a backup of your iPhoen data and use programs like Tenorshare 4uKey, iPhone LockWiper, iOS unlock, etc to unlock your phone by connecting it to PC or Mac. Restore your data from the latest back up.