If you don't remember the passcode you can only restore the device. If you restore it with the computer that the device was synced you shoud not have data lost but if you will do it with an other computer your data will be lost.
Have you maybe a reset backup? In iTunes or iCloud that woud be realy good aswell.
Hope it helps,