My doctor told me I have pars defect. Is that why could I be having pain?

Could be. Pars defect can be associated with back pain. If your doctor didn't discuss pars defect or potential causes of your pain or refer you to someone who can do either of these things, shame on them.