The Israel - Palestine conflict also has a role to play in this.
The Israel - Palestine conflict has nothing to do with this. Israel is actually supporting the ISIS. A few months ago, they bombed the Syrian army positions, in order to help the ISIS in gaining territory. Another NATO member, Turkey is supporting the ISIS by issuing passports to its fighters, so that they could travel to Iraq and Syria to join the fighting.