There will be a colour-coded wiring diagram in a manual, somewhere, too.