<p>I have just started reading Introduction to 80x86 Assembly Language and Computer Architecture.I am trying to use NASM, to run the first example shown in chapter 3 ,but unsuccessfully.Has anyone read the book,and run the examples?</p>

According to Google Books, you should be using
MASM
, not NASM. Try that.
For reference guys, page 47
here
.