My boyfriend seems distant

Lately he doesn't want to cuddle or hang out or anything. He will get in my pants if given the chance but we haven't like sexted in a while. Idk what to do to stop him from being so distant