No output, GSM module not responding

Thanks Dannable ,that code worked,I just had to change my module with another ditto one. No clue what's wrong with mine.
Also,I had to print "AT" before moving onto "AT+CMGF=1".