Where do these connectors go?

The 3 prong looks like it's for the dimmer switch ! 1st pic.