The eye spot in a Euglena allows it to detect a light source, since Euglenas are both heterotrophic and autotrophic, they would need a light source when performing photosynthesis.
Therefore, the eye spot aids a euglena in detecting a light source for photosynthesis.
Hope this helps!