Pakistan fungerer som mægler i udveksling af synspunkter mellem Iran og USA, siger talsmand fra Irans regering.