The young girl with the long black hair fell from her bike yesterday in heavy rain.

In these sentence where is the preposition?Is heavy rain is the preposition?

There are three prepositions in this sentence:

with

from

in

Each preposition has other words to complete its meaning; these word combinations make prepositional phrases.

with the long black hair
from her bike
in heavy rain

As you can see, the words "heavy rain" are part of the 3rd prepositional phrase, but are not the preposition itself.

Here is a long, but very complete, explanation about prepositions and their phrases -- and lots of examples:
http://grammar.ccc.commnet.edu/grammar/prepositions.htm

In the given sentence, "heavy rain" is not a preposition, but a noun phrase that acts as the object of the preposition "in." The preposition "in" indicates the time or place of an action or event. In this case, "in heavy rain" describes the circumstances in which the young girl fell from her bike.