2002 s340 benz

Question

My battery died..my driver side window works one min.and doesn't the next..what cani do