That's a bit too vague to pin down a single cause. A PS3 can shut down for several reasons, so a little more detail, like when it happens or any error messages, would help narrow it down.