painful sex

so having sex hurts and the last time i did i bled a little and was cramping...anyone else? and anyone have any ideas why?