If you’re working on a beat, or even if you want to start a new one right now, try to create at least three variations of the loop you started with by removing parts, adding them back in, making simple changes to patterns, etc. If you feel inspired, develop your idea further by adding other elements, and taking the beat out entirely for a bar or two.
You can also vary the motif by lengthening or shortening the notes within it, and make it change direction by inverting it, creating its mirror image. You can add notes to extend it. And later in the song, you can even create a new motif, usually for the chorus. Contrast is the songwriter’s friend.