How do I get a boy to like me?

I’m 16 and I have never been in a real relationship because I only sort of dated this one guy- I only ever saw him once in person- and he broke up with me after two months after I made it clear through text that I wouldn’t have sex with him (I’m waiting for marriage for religious reasons as well as others.) Other than that, I have never had a boyfriend nor has any guy liked me. I’m introverted and shy, but I’ve gotten out of my shell a bit and I try to always be nice to everyone. I just want to know how can I get a guy to like me or how can I tell a guy that I like him? Just general advice in the dating area? I always fear that I’m never going to find someone and I won’t get married or have a family.