LIKE = similar to (followed by noun/pronoun). AS = in the role of (followed by noun or clause).
She works as a teacher.
Use AS when someone has a job or plays a role: she works in the position of a teacher, so AS is correct.
He swims like a fish.
Use LIKE to show similarity or comparison: he swims in a way that is similar to a fish, so LIKE is correct.
As I said, the meeting is cancelled.
Use AS (not LIKE) before a clause: 'As I said' introduces a complete thought with a subject and verb, while LIKE cannot be used this way.
She looks like her mother.
Use LIKE with the verb 'look' to mean 'resemble': she looks similar to her mother, so LIKE is correct; 'look as' would be incorrect.
As a child, he was very shy.
Use AS before a noun phrase to show a time period or stage of life: 'as a child' means during childhood, so AS is correct.
He acts as if he owns the place.
Use AS IF (not just LIKE) to introduce a clause describing how something seems: 'as if he owns' shows imaginary manner, not actual similarity.
Use this knife as a screwdriver.
Use AS to show function or purpose: the knife serves in the function of a screwdriver, so AS is correct.
Nobody sings like she does.
Use LIKE in comparisons, especially before a clause: 'nobody sings like she does' compares her singing to others, so LIKE is correct.
As expected, he arrived late.
Use AS before a noun or at the start of a sentence to mean 'as was expected' or 'as it was expected': AS is correct here, not LIKE.
It sounds like thunder.
Use LIKE with the verb 'sound' to mean 'resemble audibly': it sounds similar to thunder, so LIKE is correct; 'sound as' would be wrong.