I forgot the pin to my Iphone and now its locked?

I use fingerprint scan, but it didn't work and it locked and now it wants the pin, and i don't remember it, how can i reset it without deleting all my data?

You can call the Apple Customer Service number (call any Apple Store, they will give you the right one). Tell them what happened and they can help you. My 78 year old mom did something similar with her IPhone, and they were able to reset it remotely for a 24 hour window. You have to give them enough security info though, so they know it's really you and not someone who stole the phone and is trying to reset it.