The correct option is A Toss me the ball.
Some verbs take two objects, a direct object and an indirect object. The indirect object is the recipient of the direct object, or an otherwise affected participant in the event. The direct object answers the question 'what?' and the indirect object answers the question 'for whom?'
In the given sentence, "to me" is the indirect object and "the ball" is the direct object. Hence option A is incorrect. (When the indirect object is placed after the direct object, it is preceded by the preposition 'to')
Option B is correct because the indirect object here is placed before the direct.
Option C is incorrect because the object "ball" has taken the place of the verb (toss) and vice versa.
Option D is incorrect because the sentence is incoherent.