Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
Forgotten Restrictions Passcode Help
You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
Also, see iTunes- Restoring iOS software.
If you have a recent backup then you can restore the backup after you have restored the device as new, provided the backup precedes when you set the restrictions code. Otherwise, the code you have forgotten will be reinstalled. So choose a backup before you set the restrictions code.
If this can't be done, then you've lost all unless you remember your restricton code.
open itunes on computer
plug cable into computer not iOS device
turn phone off
hold home button and plug cable into phone. do not release home button until an itunes graphic appears on device.
look to computer should have message about recovery mode click ok and restore
when done choose set up as new device
if u need an article see