Not in the mood for sex

Okay so everytime I'm with my boyfriend and we having sex at the beginning I'm enjoying it but then I stop and I feel weird having sex we've been together for 5 years and we have a kid together. We don't live together tho. But when I'm not with him I want to have sex ( I don't know what's going on with me ) . Help !!!! 😣