birth control pill questions

so im going to start taking birth control pills soon, but im sure what day you’re supposed to start. is it while you have ur period or like after? also what are the sugar pills or placebo pills for and how so they affect u? i just need like a little explanation on how it works