I'm 48 and I told a 14 year old I'm attracted to her
Why are you attracted to her at your age?
I can't get her out of my head, I hear her voice all the time and see her in my dreams.
Some pedophiles have attractions they can't control or they were molested when they were young. Instead of making it known to her, I think you should try your hardest to avoid her. Get some mental help while you're at it!
I don't want to lie to her. I'm going to tell her that I'm attracted to her and she might like me too.
You need to know just how creepy it is for you to want to tell her you're attracted to her.  The very best thing you can do before you land in jail is seek some professional help right away.