Three sentenced to life imprisonment