Islamabad has emerged as a key facilitator, relaying messages between the US and Iran in efforts to prevent escalation of the conflict.