車両 is a formal or technical term for vehicles. In everyday speech, 車 is used for cars and 電車 for trains, while 車両 appears in official signs, regulations, and announcements.
TRAIN USAGE:
ROAD/REGULATION USAGE:
COUNTER: Individual train cars are counted with 両.