If you had an terminal block or lighting block, in,or on the celing. There would have been 4 connections,
permanent live, usally two, or three red cables,
a neutral, usally one,two, or three black cables,
earth, Yellow and green,
and the switched live, (see below).
The switched live...