Default help ! How to enter code sony z1 sol23

i have a sol23 for unlocking,i have got the codes for it through online server but i dont know how to enter the code, when i insert the sim card it just says no service and not showing any unlocking menu.