Unsure, and scared

Patient: I’m 19 and I’m on the pill but I haven’t been taking it correctlyAnd have had unprotected sex with my boyfriend and I started bleeding well more like spotting but I kept taking it till I’d finish which was about a week, but once I got my period it was very light and my last period Before that was very heavey I’m not sure what to do?Please help?? x