I've played both, and ESPN NFL 2K5 is definitely a good game; but I think Madden takes the cake.
Doesn't really matter anymore though, because this will be the last year ESPN NFL 2K5 gets the rights to the NFL and its players.
From now on (for like 5 years I think?) EA Sports' Madden has the sole rights to the NFL and its players.