Frizzy hair remedy???

I don't know what to do the top of my head always is so frizzy and the ends are too and I don't know what to do I try to hairspray it but my fly aways are horrible and remedy a or products to use??