Hey sorry to hear about what happened to you. How old is your ex? I agree about what has been said before, you should go to the police. Because he might hurt you or someone else.
As of what to do with your baby, taking care of a baby isn't easy to do. You could either put the baby up for adoption or abort the baby. If you aren't able to lose your baby to adoption or abortion you could ask your parents or another trusted adult to help you raise the chile because I am sure you aren't able to take care of a baby at this age.
Good Luck