Ceiling fan stops after a few seconds
In a comment on the question, overslacked wrote:


  Do you have a voltage sensor or
  multimeter you could use to see if
  power is being constantly supplied? Is
  there anything special about the
  switch being used to control the fan?


Turns out these questions implied the actual answer:  The wiring is incorrect.