There are many things that could cause this. Overheating, short, bad amp component, bad ground, loose/dirty connections, wire gauge too small, Sub itself, etc, etc.
I would start with the basics. When it stops working does the power light on the amp change color, or as stated above, turn on a...