Americans use "talk" or "speak" with. Instead, English people use the preposition "to" after these two verbs.
On the phone I would say: "May I speak to Mary, please?" or "Could I speak to Mary, please?". "Could" and "May" are more polite.
"Give me Mary" is too rude.