I often start with a theme or motif (an original one or one by another composer, or from a song etc) and try to develop it, transpose, enlarge it, find a counter motif for it, build it up, imitate, reverse and mirror it etc. You can start with really short themes or motifs and play just a few bars, and then successively expand it.