First off, you are not a bad parent!
Now, could you tell us a bit more about him? What does his day look like? What time does he start his day, naptime, bedtime, what does his bedtime routine look like? Does he fall asleep independently, does he have a lovey? Has he been ill lately or has anything changed in his routine?
Post back and we'll try and help!