How do I know when I need a new phone?

My phone has been acting up the last several months.. it's a bit over a year old, so wtf!