Word-for-word transparent:
神经 ('nerve') +
痛 ('pain').
神经 itself is built from
神 ('spirit') +
经 ('channel'), Chinese medicine's pre-modern term for the body's signal-carrying channels, repurposed as the calque for Western 'nerve'. So
神经痛 = 'spirit-channel pain'.