The connection between crime and unequal access to basic services is that the first can be caused by the second: unequal access to basic services can lead people to commit crimes because:
-they might be feeling powerless
-they might struggle with frustration and want to "find justice" by releasing their anger
-they might be lacking the proper education
-they might be more vulnerable to be abused by others.