My Macbook Pro kept shutting down then would not powder on. I replaced my AC cord. They do wear out. If this works for you, check to see if you battery is charging this can take up to 3 hours.
open