Hi and welcome - you are not alone with the "late starter" bit...nor the "short term memory" problem bit.
I have never managed to learn any of my pieces by heart, but I learm then well enough and practice them often enough that the music is more of an aide memoire (I no longer sight read every single note, just set my fingers off on the first notes of a phrase and off they go)
As other have said, practice, practice, practice.
Work on scales in such a way that you can hear if you are wrong - all major scales sound the same. All jazz melodic minor scales sound the same etc.
Currently my teacher has me using a die (as in the singular of dice...6 spotty sides) to play scales. Throw the die, play the scales that have that many sharps and flats, major, melodic and harmonic minor etc. Tongued, slurred, two tongued then 2 slurred, triplets on each note...and so we go on...
My improvisation is very simple. One secret is never to be afraid of playing a "wrong" note - you are only ever a semi-tone from a "right" note.
I am going to a Jazz Improvisation workshop on Saturday. My jazz improv theory is sound, but I can't do it in practice.
There is a Jazz Improvisation MOOC online - it is presented by Gary Burton, delivered by Berklee through Coursera, if you wanted some theory and practice.
Jazz Improvisation - Berklee | Coursera