http://forum.arduino.cc/index.php?topic=384198.0
There is a section on communications which has some links to Serial I/O tutorials.
Basically send your command to the SIM device, then wait until you get a response. Then act upon that response. Don't just wait then carry on regardless.