A/AN — first mention or one of many. THE — specific, already known. No article — general ideas, plurals, uncountable nouns in general.
Read the full guide: Articles in English: A, An, The and No Article
I saw a great film last night.
When you mention something for the first time and it's not unique or already known to the listener, use 'a' (or 'an' before vowels); here, the film is new information.
The sun rises in the east.
Use 'the' for things that are unique in the world or that both the speaker and listener know about; there is only one sun, so everyone knows which one you mean.
She drinks — coffee every morning.
Uncountable nouns like 'coffee' used in a general sense (not a specific coffee) take no article; you're talking about coffee in general, not a particular cup.
The Eiffel Tower is in Paris.
Proper nouns for unique, well-known landmarks always use 'the'; the Eiffel Tower is a specific, unique place that everyone recognizes.
He's a doctor.
When stating someone's profession with a singular countable noun, use 'a' because you're saying 'he is one of the doctors' — it's a first mention of his job.
I love — music.
Abstract uncountable nouns used in general statements take no article; 'music' here refers to music as a whole concept, not a specific piece.
Can you pass me the salt?
Use 'the' when both speaker and listener know which specific thing you're referring to; you and the listener both know which salt (the one on the table or in the kitchen).
— life is beautiful.
Abstract nouns expressing general concepts or universal ideas take no article; 'life' refers to life as a general human experience, not a specific life.
She is the best student in the class.
Superlatives (best, worst, biggest) always require 'the' because they identify one unique thing; there is only one 'best student' in the class.
We need a new computer for the office.
Use 'a' for first mentions of countable nouns when they are not unique or specific; you haven't mentioned this computer before, so it's new to the listener.