how to unlock moto g network code

please tell me how to unlock network code of moto g with buying code