Basically, could means "had the ability to", "was/were able to", or "would be able to", but this is far too big a question for a forum. You need a grammar book. Try The English Verb by F.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.