My periods are so irregular

What is the best way to make my periods more regular? Would an implant help or is the pill better?