They are both correct, but the meanings are different. "I spoke to Ram" denotes a normal conversation. "I had words with Ram" suggests an argument.
Student or Learner
I spoke to Ram and I explained the matter to him.
I had words with Ram and I explained the matter to him.
Are both the sentences correct and do they convey the same meaning?
Hello, Anil Giria.
I don't think they convey the same meaning.
'To have words with somebody' means 'to have an argument with somebody'.
'I had a word with ...' would mean the same as the original.