Formal:
* J'ai parlé à mon ami. (I spoke to my friend.)
* J'ai eu une conversation avec mon ami. (I had a conversation with my friend.)
Informal:
* J'ai discuté avec mon ami. (I talked with my friend.)
* J'ai bavardé avec mon ami. (I chatted with my friend.)
* J'ai parlé à mon pote. (I talked to my buddy.) (This uses slang, "pote," and is very informal.)
Other options:
* J'ai contacté mon ami. (I contacted my friend.)
* J'ai téléphoné à mon ami. (I called my friend.)
* J'ai envoyé un message à mon ami. (I sent a message to my friend.)
The best way to say it will depend on the specific situation and your relationship with the person you're talking to.