If your phone is powered by the Android operating system, then turn if off using the Power button, next turn it on but press Power On + Home button + Volume Down until it enters recovery mode. Use the volume buttons to navigate and then select Wipe Data/Factory Reset. Confirm the selection with the Power button and the phone should have factory defaults restored. This is the only way or visit a local phone service shop and they will do it for you.