The gate control theory of pain, as applied to labor analgesia, explains how non-pharmacological methods reduce pain by: