WASHINGTON — President Obama spoke with President Vladimir V. Putin of Russia on Thursday in their first direct contact in four months as the United States and Russia try to manage their conflict over Ukraine while still working together on other issues like Syria and Iran’s nuclear program.

Mr. Putin initiated the call, the first between the estranged leaders since February, the White House said. He brought up the war against the Islamic State in Syria and the two leaders agreed to have Secretary of State John Kerry meet with Foreign Minister Sergey V. Lavrov to discuss how to counter the spread of radicalism in the Middle East. They also discussed the Iran talks in advance of next week’s deadline for an agreement.

But American officials said that Mr. Obama focused on the continuing separatist war in Ukraine fomented by support from Moscow and pushed Mr. Putin to abide by a shaky diplomatic agreement known as the Minsk accord. Violence has flared in recent weeks even as Russia failed to drive a wedge among the members of the European Union who agreed to renew economic sanctions on Russia for another six months.

“President Obama reiterated the need for Russia to fulfill its commitments under the Minsk agreements, including the removal of all Russian troops and equipment from Ukrainian territory,” the White House said.