Whenever something is forgotten or unmentioned, misspoken or mistaken, use the phrase "What wasn't I thinking?"
Andrea forgot her friend's birthday. She called her and said, Happy Belated Birthday--- "What wasn't I thinking?"