The difference between 'be able to' and 'could' is apparent only in past events/situations. You should normally use 'was/were able to' whenever you did something in the past that was the result of your efforts, rather than your ability. Likewise, use 'wasn't/weren't able to' when you failed to do something on a particur occasion in the past.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.