Painful first time sex

My boyfriend and I were trying to have sex a few time, but it was to painful each time that I couldn't continue... Anyone has any advice???