If you know you need the time & space then take it. Step away for 3 days, a week, however long you need. Tell them, give me "X" amount of time to think & heal & just be. If they love & respect you, they will wait.
It's not a competition about getting your partner to want you more or vice versa. If it's the case where your boyfriend takes you for granted and you're in a 'comfortable' zone, try some of these tips to reverse it and put some spark in your relationship.