I have developed problems to sleep with medication, why can’t I sleep?

I have developed problems to sleep with medication, why can’t I sleep? My doctor prescribed me zoloft after I was diagnosed with depression. I have been taking zoloft before going to bed for about 2 weeks now and I now have big problems sleeping for the past 2 days. Just don’t seem to be able to get to sleep..it takes a long time and I don’t sleep well during the night. Can the meds me the reason why? What should I do?

Male
Age: 36
Medications: Zoloft 150 mg