Oil and gas prices continued to rise sharply on Tuesday as the war involving Iran unsettled financial markets worldwide.