What should I do about my 3 year old having accidents?

My three-year-old wee’s herself! She gets lazy or sometimes waits till the last minute then it’s too late? She knows how to go the toliet. Any suggestions? As I’m at my wit ends…