Can the arduino mega plus the wifi shield connect with GSM???

Hello !!! I am working on project based on the air conditioning loop system, but when i am trying to connect the gsm to the arduino mega and wifi shield esp8266 its not working. Its not sending an alert.So i would like to know whether is it compatible or not. As when i tried to connect the mega to, the gsm does sends alert. Could u tell me or suggest me what do. Like why is the gsm module not sending or receiving alert.

Like why is the gsm module not sending or receiving alert.

User incompetence covers it all, I guess, and is certainly the best answer you will get for now. Of course, it could be something really simple, like because you haven't bothered to put any code into the Arduino. This would explain quite a lot, and that would be no surprise, as you certainly haven't bothered to post any here.