why does my GSM module doesnt work? and another question....how to choose the

my secound question is how to choose the function in the if statement....i am a beginner at arduino. my GSM module is SIM800l and i sure about the hardware connections and the codes but what about the SIM card? can we use a 4G one????