Hi,
Messages is the app created from what was iChat.
iChat had 4 "services" it could join when the last version was about in Lion (iChat 6)
These were
AIM and Bonjour that have been present since day one.
Jabber (that includes GoogleTalk and Facebook Chat) which were added in iChat 3.
Yahoo was not added until iChat 6 and can only Text Chat (the other three above can Video and Audio Chat and Share Screens from within the app)
iMessages was added as the Messages app came into being in Mountain Lion (OS x 10.8) and was numbered as version 7 from the start.
iMessages uses Apple IDs that are iCloud valid to Register a Mac.
This can then be linked to an iPhone and in Yosemite and iOS 8 you can even sync SMS messages.
However since day one Apple IDs has also be valid AIM Screen Names.
This starts with any @Mac.com ending ID whether it was a trial account, a paid for account that became a MobileMe linked ID or a lapsed paid for account.
When MobileMe came out you could keep the @mac.com ID and link it to an @me.com ID. Trial @me.com account never continued as AIM Screen Name as @mac.com ones did.
Since MobileMe finished and changed to iCloud you had to link your @me.com account with iCloud.
This allows some @me.com Accounts ID to be used in both iCloud (and apps that use Apple ID) and the AIM Screen Name registration (in any version of Messages and older updated version of iChat 6).
Then we have iCloud linked accounts. Most are @icloud.com IDs but as I said there may be those that were linked at the MobileMe to iCloud change over.
In these cases the AIM server recognise each ID as a separate valid AIM Screen Name.
If you have an @mac.com ID linked to an @me.com version linked to an @iCloud.com ID you will have three valid Screen Names.
NEXT
Lets presume you have opened up Messages, linked and Apple ID to the iMessages account and Enabled the Bonjour account.
At this point you have no Buddies.
You can choose Contacts and send iMessages to them.
If you have Other Macs on your LAN and they have iChat or Messages with their Bonjour Account active then you will see them in you Bonjour Buddy List if you display it (You cannot add Buddies to this List. It finds them Automatically if you have Macs and active Bonjour accounts on the LAN).
You can now Add other accounts.
As we are talking about the AIM Buddy List we will start with that.
Press the + icon below the list in the Preferences > Accounts
Choose the AOL option (it calls it AOL here but later lists them as AIM accounts)
Add the Apple ID.
Add the Password (it should be a password of 16 characters or less to work with the AIM servers)
The Account should then be listed in the left hand list and be available.
In the Window Menu the CMD+1 option should show the combined Buddy List (Bonjour and AIM)
They can be separated in the General section of the Preferences.
Buddies (I.e. in this case other AIM/AOL Buddies can be then added to the list).
You could use the Jabber option (After pressing the + add icon) to add any Facebook Chat ID you have.
Choose the Google option if you have a Google ID you wish to use.
This will allow you to chat to Jabber Buddies (Google and Facebook and other Jabber Buddies can be added to a Jabber list)
Chats are then iMessages to iMessages people
AIM to AIM
or Jabber to Jabber.
Yahoo is also an option
You can only use a Yahoo ID to add an account (other Yahoo clients allow other linked in options).
As I said this Account will only Text chat. It will not do Video or Audio or Screen Share.
It will not even send files.
To be clear.
Buddies are separate from Contacts.
You need a Buddy list to add a Buddy.
Whilst it is called the Contacts app and the people are probably the same their Address Card should list their iMessages Apple ID/iPhone Number info as well as their AIM or Jabber or Yahoo IDs
Points to Remember
Whilst I have coached this in terms of an Apple ID that is iCloud valid to allow it to work in iMessages and that it can alos be used in an AIM/AOL account other people may use other emails as their Apple ID.
In some cases this could be a Google ID.
So Google ID might be the Apple/iCloud ID and then it can also be set up in Mail as a mail account and Messages as a Google Account (it has it's own set up because it does not follow the server naming format of other Jabber servers).
The same might be true of a Yahoo Account used as an Apple ID.
I.e. it might not just be Apple IDs issued by Apple that can be used twice in Messages.
9:22 pm Tuesday; May 19, 2015
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad