what would make a 2002 Ford F-150 die when you apply the brakes?
Could be a vacuum leak, do you hear a hissing noise?
Dirty throttle body, IAC or both. Check for vacuum leaks like Tom says. A stuck open EGR will do it too.
Search Ford F-150 Questions
Ford F-150 Experts