Madonna has been through many phases in her sound over the years as any good pop artist would.
Like a Prayer seems to me one of those albums that is lost in a phase shift. It has components of what has come before and what will follow directly, but it is lost somewhere in the middle with no set direction. This does not help the album but leaves it lacking a coherent theme or sound that makes it flow and work like her better albums.