Struggle having an orgasm

Grace

Whenever I masterbate I have no problem at all but for some reason when it’s with my boyfriend we struggle so hard to get one. He can do exactly what I would do and I’ll get so close but still nothing. I’m very attracted to him so I’m not sure if it is a psychological thing since I’ve had an orgasm mostly alone or what. Has anyone else had this issue or have any advice?