Sometimes it can be really beneficial to shelve something for a while and start a new project. Just leave it alone and save it in a folder called "finish later" or something. Come back to it when you have a flash of inspiration or when you get bored and want to work on something but don't feel like starting a new track.
That said, there's also some merit in being able to grind it out even when you don't want to. Sometimes the biggest thing that prevents people from writing good music is the willingness to do the painful, difficult parts of composition like hand drawing 32 bars of automation or rewriting the entire rhythm track because it doesn't sit well with your hook.
Sometimes when I don't know what I want to happen next in the tune I'll just start flicking through presets and playing around with them on my midi keyboard. A good sound can be really inspirational.
Another thing I like to do is to copy and paste around different elements of the track into the next 4 bar grouping, maybe change up the rhythm or add an element, then I listen to the transition and change what I don't like.
Try changing the rhythm, adding a new element or a new sound, whatever haha. I really believe that structure and arrangement is where musical creativity comes in the most. You can't really teach that stuff, it just comes with time and knowing what you do and don't like.
And sometimes, the best thing to do with a track is to just start deleting shit. Start muting tracks, if having them muted doesn't make the music significantly worse then just delete them. And sometimes shrinking your arrangement and starting over there can be good too. Don't get too committed to a bad arrangement that makes it difficult for the music to move forward. Delete entire sections, write new ones.
If this is only your third track though I wouldn't worry about it too much!