While they are both cooked dessert bases that start with roughly the same ingredients, custards generally contain milk, cream, sugar and eggs - the eggs being the thickening agent.  Pudding, on the other hand, also contains milk (or cream) and sugar, but not always eggs.  The main thickening agent for pudding is some kind of starch - often cornstarch.  Sometimes it also contains eggs, as in this recipe.