Complex sentence: Prisoners may become involved with religion while incarcerated for a variety of reasons ranging from the materially pragmatic to the personal and spiritual.
Split into simpler sentences: Prisoners may become involved with religion in prison for a variety of reasons. These reasons may also range from the materially pragmatic to the personal and spiritual.