How to do proper connection

I dismantled the whole fan for cleaning and re-paint but forgot to label
Please help how to re-connect it properly