Pastor sentenced to life