People above me are right. A factory reset will erase everything. If you want to save your pics you will have to find a way to bypass the lock screen. If your phone is an Android phone, some models have an option for you to hit forgot password. Enter your email info and if it's correct then you can access your phone.