when the phone is new it hasn't a security code (only for siemens phones) so the code is the one that you first entered as security code. your problem is that the siemens security code works like a pin code if you type it 3 times wrong the phone is blocked.
hope this is usefull to you