To have your magic work, you need to understand why it works and how it works. These are fundamental in casting spells. Also, you need to make sure you are using good spells. Some of the spells you find on the internet will not work at all.
As for getting a boyfriend, this is a rule of life: To obtain love, you must first love yourself. If you do not truly love yourself, value yourself, and consider yourself worthy of love, you won't ever find love with someone else. I'm not saying you have low self esteem, but if you aren't okay with yourself unless you're in a relationship, you will not be okay in a relationship.
It's not worth killing yourself over, and I really, truly, honestly hope you never try to do that again.
I think a big part of learning to love yourself is doing the opposite of what you've done. Changing everything about yourself so a boy will notice you just ensures they never will. A few things here and there to better yourself is great, but being someone who just isn't you won't find you love, and even if it did, they wouldn't be in love with you, just in love with an illusion - that's not fair to you or him, is it?
Best of luck. PM me whenever.