This is an extremely broad question, actually, and I doubt there can be a single, definite, comprehensive answer. I will try to provide a few quick-and-dirty rules of thumb, but be aware that you will probably find exceptions to every single one of them.
Also, as Colin Fine points out, note that things are not pronounced the same everywhere. For example, can't can be pronounced as /kaːnt/, /kɑːnt/, /kænt/, and /keənt/, depending on what variety of English we are talking about. As a second example, the vowels in Mary, marry, and merry sound identical in certain dialects but not in others.
All that being said, on to the rules of thumb.
First, the basics. Here are the Wiktionary usage notes for a:
In English, the letter a usually denotes the near-open front unrounded vowel (IPA: /æ/), as in pad, the open back unrounded vowel (IPA: /ɑː/) as in father, or, followed by another vowel, the diphthong /eɪ/, as in ace.
Now on to details, which I will be more adapting than quoting from the essay "Hou tu pranownse Inglish" by Mark Rosenfelder. Note that the order of the following rules of thumb is important. As the author puts it, "to pronounce a word, you go down the list of rules, seeing if each one in turn applies, and applying it if it does".
- aught becomes /ɔt/ (daughter, caught, taught, naught)
- ay is pronounced /eɪ/ (day, say)
- al is pronounced /ɔl/ before r, s, m, a dental stop, or final ll
(also, already, wall, bald, although, almost)
- alk becomes /ɔk/, except initially (walk)
- a is pronounced "long", as /eɪ/, before an intervocalic consonant (rate, bake).
- a is pronounced "short", as /æ/, before two consonants (battle, ladder) or
before a final consonant (bat, dad, ram).
- wa is pronounced /wɒ/ (UK) or /wɑ/ (US) before t, d, n, s (want, wander, swan, Rwanda, swat, wad, wasp), and as /wɔ/ before sh or tch (wash, squash, watch).
- There is one thing not covered by the above: an unstressed a is often
reduced to a schwa, /ə/, as in addition /əˈdɪʃn̩/ or anomaly /əˈnɒməlɪ/. However, as the author puts it, "the idea here is to predict pronunciations from the spelling, and the spelling doesn't indicate the stress". Once you hear a word, you know where the stress is, but then you also know how to pronounce any a in it anyway.
- At this point, you are more or less safe to make the following substitutions:
- eau = /o/
- ai = /eɪ/
- au, aw = /ɔ/
- ea = /iː/
- oa = /o/
- ua = /juə/
- a is reduced to /ə/ before final l (final, typical); a "short" a,
as in /æ/, is reduced to /ə/ before a final n (human). "These rules don't apply
to monosyllables (pal, can), nor to vowels that have already been assigned a
particular value by an earlier rule (e.g. meal to /miːl/ by the [previous] rule).
These rules could probably be refined; they don't apply to stressed finals, but again,
the orthography doesn't indicate stress."
- The suffix -able is reduced to /əbəl/ (lovable, usable, formable)
- Any remaining final a is pronounced as /ə/.
- war is pronounced /wɔː(r)/, except before a vowel (war, warlock, dwarf)
- /æ/ before a double r becomes /e/ (marry; see disclaimer above)
- /æ/ before any other r becomes /a/ (mark, star)
Again, these "rules" are only approximations, so take them with a grain of salt (also, I hope I haven't thrown in a few typos or copy-paste mistakes).
For further reading, see these questions: