I have a shapefile containing three types of polylines, how can I color each type with different colors ?
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
Whichever software you use, you should be able to display the line colours differently based on an attribute of the line itself. e.g. Road = black, river = blue etc.
In Mapinfo this is done using thematic mapping, in Arc you edit the symbology.