citation in codes

It sounds like you inadvertantly turned off auto formating.  You can manually update (Update citations and bibliography) but best to turn it back on on the Endnote Ribbon in Word (see image attached).