If you have forgotten the restrictions password/passcode you will have to erase the iPhone via Settings > General > Reset > Erase All Content and Settings and then restore from a backup that predates the installing of the restrictions code.
Without a backup you will have to manually redownload your apps and music.