Blair took over the Labour Party when his predecessor John Smith died of a heart attack in 1994 .