What are the definition of each and what exactly is the difference?
The guys with the guns robbing the bank are accomplices, the guy driving the getaway car is an accessory.
An accessory does not commit any physical criminal act, but helps the perpetrator before the latter commits a crime.
An accessory helps the perpetrator commit the crime. An accomplice is a co-perpetrator.