The idiom "couldn't get a word in edgeways" is used when someone else is talking so much that you cannot find an opportunity to speak. Thus, you had no chance to say anything. The other options refer to difficulty, thinking hard, or forgetting, which do not match this idiom.