The only way is to do a hard reset there is NO other way to get in your phone.
But you will loose all your data so I hope you have a backup enabled.
If you did not enable a backup but you have all your data on an SD card get it out before you do a hard reset.