Painful

How do I keep sex from being so painful my first few times???? It's horrible!!!