I think the real issue everyone misses is that region is so rich in oil but the fruits of that bounty has not reached down to the level of the people that join ISIS.
They have been robbed by the powers that be...and this is the result. I do not know how else to explain it.
That has the effect of the poor uneducated out of work males listening to clerics and others wanting to seize power.