I'll tell you why religion doesn't work nowdays, there are two reasons:
1) The times have changed drastically from the times when Christianity was started.
2) There's this shitload of idiots who don't understand the rules of the religion and manipulate them for their own gain.

For example sex before marriage. It's more or less there to have the children to have both parents and so their father doesn't bail out as without marriage he would have no responsibility or any relation towards the woman.

That's just one example. You obsessed people with religion do not really understand those regulations the church has made. You have just taken in mind the literal sentence that is written and memorized and praised it over and over again. Which is quite dumb.