Long in length or distance — describing something that is extended in physical length.
あの橋はとても長いので歩くのに時間がかかる。
That bridge is very long, so it takes time to walk across.
彼女は長い髪を後ろで結んでいた。
She had long hair tied at the back.
長い道のりを歩いて目的地に着いた。
I walked a long distance to reach the destination.
Long in time — lasting for a prolonged period; extended in duration. (The kanji 永い is sometimes used in literary contexts.)
長い会議で疲れてしまった。
I got tired from the long meeting.
長い間会っていなかった友人と再会した。
I reunited with a friend I hadn't seen for a long time.
この町には長い歴史がある。
This town has a long history.