Take some lessons with any decent, competent music teacher and you’ll very likely get the following advice:
- practice (you know it doesn’t work without it)
- train your ears – if you haven’t already, definitely try
the functional ear training method
- repeatedly listen to great music
- transcribe as much as possible
- imitate and absorb the greats
- increase your musical vocabulary.
And eventually as a result you’ll start to spit out original music.