I NEED HELP ASAP

Okay so me and my boyfriend attempted to have sex and we got going for about a second and he lost his boner? i asked him if i was doing anything wrong and he said no? We attempted again and the same thing happened i tried so hard to give him a boner makeout touching him , me being naked. nothing worked. but i can jerk him off and he stays hard ? SOMEONE HELP