Make some tunes
Make some patches, listen to random music or open random unfinished projects and see if any ideas are worth salvaging (or just wonder what the fuck you were thinking

). Maybe read some tehnical/technique stuff (or watch youtubes I guess, I find them untrustworthy and timeconsuming tho). Ill often rewrite a song thats half finished, change the tempo/sounds/melodic content/drums, although thats a bit of a judgement call - sometimes I do all the above many times before it is "right", but if your stuck its better than dragging out some mediocre shit.
Consume and appreciate some other form of art. TAKE A BREAK, if youre not getting any progress do something else that you enjoy, or shit you put off and hate. Visit some mates, or go for a walk, go to a cafe/look at trinkets, ring your mum you slack tnuc

. Try and write something with a different vibe/genre to what youre comfortable with. Take a sound and make it Perfect, make a rediculously convoluted fx chain where the elements are so subtle noone will really know theyre there except you, needle drop random terrible terrible opshop records while youve got it recording till you cant take it anymore, then cut them into samples. Make a piano/organ piece- start with a few chords and just build layers till it is nonsense and strip it back down to something that works. Chop some vox, download acapellas that you have never heard of or that are rediculously shit - I can practically guarantee there will be a useable word or line in there somewhere. Try and understand a sound. Take a sound and randomly effect and resample until it is the most useless sound in existance, then repeat a few times.
If youre still out of ideas after youve tried all that then I dont know what the fuck to tell you, maybe stop writing and force yourself to stay stopped till the urge to write is literally a compulsion you cannot control anymore lol. That turned into a fucking essay, be glad youre around youre music making gear. Good luck.