Sexual troubles

Last night me &’ my boyfriend tried to have sex for the first time &’ for some reason his penis couldn’t stay hard , &’ he honestly didn’t know how to work with what he has 😐 I eventually stopped him because he was struggling &’ i was no longer horny and i really really like him but I’m not sure if i can deal with that happening again