Id say the chicken would come first and would definitely beat an egg as it would be left at the start as it doesnt have the ability to run.
Only evolution know... I think its some pre-chicken species which at firt did not lay eggs then later on, it did (that means the chicken)