Iran is one of the world’s major producers of oil, though sanctions by Western countries have limited its sales. If a wider war erupts, it could slow the flow of Iran’s oil to its customers and keep the price of crude and gasoline higher for everyone worldwide.