The priciple behind nmr is that many nuclei have spin and all nuclei are electrically charged. If an external B is applied, an energy tranfer is possible between the base energy to a higher energy level.
Lets take an example:
ester: RCOOR'
Its range is 160-185 ppm(chemical shift owing to C=O).