To gain access to your phone, you might need to wipe the data from the recovery menu. Since this matter has been discussed before, you can take a look at the related question to find information how to enter Recovery menu to perform a Factory Reset operation.