I've never really been a confident person, except from a musical standpoint. I had to push myself early on, but it got easier with each gig.
The more you write tunes, the better they will become. The more you do gigs, the better you will become.