You use the former and the latter when you are referring to two persons or things already mentioned.  If you are referring to more than two persons or things, you can use the first and the last as follows:

I have three brothers.  The first likes dancing, the second likes studying, and the last (third) likes physical exercise.