PROBLEM WITH REGISTERING INTO NETWORK

i am developing the code in java for sms. while running the program the led light continuously on i.e not register to the network so is there any at command to re power the modem or is there any way to solve this problem. can any one help me for this problem as functionally

AT+CFUN=1

ty