To "be attracted to" someone means to like them. It usually means to like someone in a romantic or sexual way.
You use the phrase "attracted to someone" when you want to talk about the feeling objectively. This means that you are discussing the feeling and talking about it. When you're actually feeling attracted to someone, you don't usually directly say "I'm attracted to you."