Briefly, a few simplified definitions (see Wikipedia for more complete definitions).
Accent - The pronunciation distinct to a region.
Dialect - The grammar, vocabulary, and pronunciation distinct to a region. Dialects of a language are mutually intelligible. Some dialects have prestige and are used in the mass media and in formal situations. Some dialects are stigmatized.
Language - When dialects of a language are not mutually intelligiblle, linguists classify them as related but distinct languages.
Examples and exceptions:
British English and North American English are dialects. They have differences in grammar, vocabulary, and pronunciation, but are mutually intelligible.
General American (the mass media dialect of American English) and African-American Vernacular English (Black English) are dialects.
Arabic is "one language" for political and cultural reasons. Linguists consider it a family of languages related to old Arabic. The versions are not mutually intelligible. The Egyptian version is widely known due to the popularity of Egyptian mass media, and is sometimes used as a common language when speakers from different regions need to communicate.