Need some help

My boyfriend and I we trying to have sex for the first time. Everything was going good but then he couldn’t get his penis in. It was very uncomfortable and a little pain for me. I don’t know what to do or say to him or to make it better. I need some tips please!