* A taxi: This is the most common meaning. A cab is a car for hire, typically with a meter to calculate the fare.
* The driver's compartment of a vehicle: This is especially common in the context of trucks, locomotives, or other large vehicles. For example, "the cab of the truck was damaged."
* A small, enclosed space: This is a less common usage, but can be found in phrases like "telephone cab" (an enclosure for a telephone) or in a more general sense to describe a small, enclosed area.
The intended meaning is usually clear from the context.