How to I get that spark/ get his attention back and also get myself back like self esteem and confidence?

I Have this crush and we've been friends forevverrr and he knows me 100% and lately my self esteem had been low and my confidence, and I just feel so blah and lately he hadn't been texting me much or hanging out and I kinda feel like I'm losing him bc I'm at my low what is a great way to get his attention back and be like we use to, and I also feel like his attention is somewhere else. Also on a side note I also have insecurities and I realize it's from being at my low and I think just be being at my low and being insecure is driving him away. But what's a good way to get his attention but also bring my energy and self esteem back

How to I get that spark/ get his attention back and also get myself back like self esteem and confidence?
Post Opinion