To get receive SMS CODE to be programmed Properly, you must carefully observe the new message alert status received from GSM Modem, Show this to me, because some modems contain sms content within +CMT string. If your modem is the same, i can give you complete working code, if not, i may help you as much as possible.
first send AT+CMGF=1 PRESS ENTER(0DH)
THEN TYPE AT+CMGS="+9800220107" PRESS ENTER (0DH) YOU SHOULD BE GIVE + SYMBOL BEFORE 10 DIGIT MOBILE NUMBER
THEN WRITE SMS
THEN PRESS <CTRL+Z>