ignition problem?

ok, o i was driving the other day, and i turned my blower fan on, i dont remember where i am getting the power from because i had to wire it myself and i did it a while ago, but 5 min after i turned it on, the engine died on me, i got it going again after a few minutes and i turned the fan on again, and 5 min later it dies again, then i didnt turn it on again and i made it the 10 min back to my house. I think I wired it from the ballast, so could it be taking charge from my MSD ignition box?