Iraq has the second largest oil reserves in the Middle East , but oil production suffers from years of sanctions , war , and insurgent attacks on key infrastructure .