The first time

I was having sex for the first time with my boyfriend, he got hard and then it went down and we stopped, he couldn't get it back up. Am I blame? Did I do something wrong? Or has this happen to anyone??