Ethernet shild + sim900 module loop does not work

Which Arduino are you using? Have you considered that you may be running out of memory?