Try these ways:
1. Put the tip of your tongue between your front teeth and keep biting it (Hey! Not like that! Gently!)
Now for th in thanks, try to say "t" while you are still biting your tongue. For th in though, try to say "d". You have to practice in front of a mirror 1.5 million times till you develop the habit and do it without thinking about your tongue.
2. If that's too difficult or if your tongue starts bleeding, try the latest method: :P
Put a piece of chewing gum behind your upper front teeth. Keep it there with the tip of your tongue. Hey! I said "KEEP IT THERE!" OK, never mind, don't pick that one up. It's dirty! Use another one. Keep it with your tongue behind your upper front teeth. Ready? OK, without letting go of the chewing gum try to say "t" or "d". What comes out will be "th". Keep that chewing gum in your mouth for a week and you'll get it! (OK, you can get a new piece every few hours).