CBD is generally recognized a compound for pain, anti-inflammatory, anti-anxiety applications.
CBN, though also an anti-inflammatory and pain reliever, is primarily a strong sedative.
They will not have the same effect for insomnia. While some (like myself) report that CBD can help you to relax and fall asleep, CBD isn’t generally recognized as a hypnotic and can actually promote focus, keeping you awake.
ryan