To unlock the pattern of the phone you'll need to perform a factory reset. Turn off the phone then press Volume Up + Home Button + Power button. After a few seconds, the recovery menu will appear. With the Volume buttons select the options then confirm with Home or Power button. Select Wipe Data/Factory reset and you will have access to your phone.