You can find the PUK code on the plastic that was attached to your SIM card or, if the service allows it, you can ask another person who is in the same network to generate a PUK code for you in the USSD menus available for carriers. However, the carrier is the only one that can generate it, and if there is no USSD option, then you will have to contact them, because it's the only way.