Begin with listening.

Practice interactive listening.
Learn to improvise with conviction.
Build confidence and competence.

Interactive listening means paying close attention and responding in real time. You listen to what’s happening, and your playing grows out of it.