Welcome to Android Central! Encrypting a phone is not something to do lightly. It's irreversible. And if you forgot your PIN, then you're kind of up the creek. Try using Android Device Manager to reset the PIN. https://support.google.com/nexus/answer/3388218?hl=en