Ummm............ what do you think it was supposed to do?
If you were baptised and have "never been a Christian" - that speaks more about how you were raised and the fact that baptism does not negate freewill than it does about anything "working".
Infant baptism is a method of bringing a new member of the family into the covenent established by Christ. Covenents usually included all members of the household, so this is a holdover of those beliefs. But more than that, baptism is an opening of the pathway of Grace - and it is this Grace which covers and blots out sins, not the water.
For many of us who were baptised as infants (and then raised in the church and given a choice at a later date to confirm or reject that baptism), this rite sends the message that our parents thought their faith was important enough to want us to share in it. We in turn wish to pass it on to our children.
But baptism is not the end of the story. It is the beginning of a journey of growth and learning, includes stumbles and falls and getting back up to try again, of having to confront our darkest failures and deepest doubts, but never having to do any of it alone. Unless you choose to. You always have the choice. You can live out the promise of your baptism in a life of faith or you can reject all that baptism stands for and go your own way. It is always up to you.