Going soft during sex?

My boyfriend who was a virgin and I had sex for the first time. He was fine getting hard before but about half way through he got soft and we just couldn't get it back up. I'm pretty sure it's not me because I can give him an erection usually otherwise. We're both 18 so I don't think it's erectile dysfunction because that's usually in older men. What could it be?