For the timer - I got mine at ACE hardware. Just make sure you get a timer that can handle the current for the heater - such as an appliance timer - you will fry a light timer.
As for checking the block heater - there are several things you can do. Use a VOM (volt ohm meter) check the resistance between the two spade terminals of the plug. If you have a LOT of resistance you have a bad element (very seldom does an element go bad this way). If you have infinite resistance (no connection at all) you then need to check between the plug and the block heater for each wire. If one of these is open, just replace the cord. If these are good, check the resistance of the block heater itself - if it is open - you must replace it.
Never replaced one in a cummins so I can't help you out there.
Dan