To stop dandruff you can use a shampoo like Head and Shoulders, or you can try natural remedies like an olive oil soak or taking certain probiotics.
A scabby, flaky scalp can be a result of a problem that may go away in a few days, like contact dermatitis, or something more ...