What you want to play is nicknamed a "Gish." There are a number of gishy resources available for 3.5 here and here.
A gish uses his spells to enhance his battle prowess and combat capability, while being a melee character at heart. In exchange for this versatility, they tend to be somewhat... fragile, though with the right spell selection, this is not the case.
Quoth the second link:
Gish is the term used for any fighter/mage build where the character's focus in both spellcasting and martial combat is at least somewhat equal and where both aspects of the character are viable. Spellcasting and Manifesting (for psionics) can usually be used interchangeably.
If you're playing pathfinder, this answer is obsolete.
The trick with "gish" is to make sure you can both effectively cast spells and effectively fight without sacrificing too much of either side. This requires a certain amount of hoop jumping. I disrecommend using a character builder for 3.5 characters as it's worth getting your hands dirty by understanding every aspect of the mechanics. I made the mistake of starting my 3.5 career off with a character builder and it delayed my understanding of the system considerably.
If you're interested in something "simple" I recommend the Duskblade. They are described as "Gish in a can" and as a class that can use a sword and spells by default... they are. On the other hand, they're not as effective as many many builds.
For race, I recommend human or Illumian (depending on what books you have available.) A human's bonus feat will be handy, and the "Aeshkrau" from an Illumian is designed for a gish.
On the other hand, this default build from the first link is simple and has quite a lot to recommend it:
28 point buy
fighter 4/ sorcerer 2/ abjurant champion 5 / runesmith 1/ eldritch knight 8 BAB -18 CL 15
suggested feats - Arcane strike,exotic armor pro - Dwarven Battleplate , Armor Specialization and weapon spec with a two handed axe or hammer ( for stereo typical dwarven feel ).
Pro - good HD for most levels, simpole build that doesnt have a lot of dipping, natuarly high base attack bonus so does well in anti magic areas. sorcerer gives lots of spells for arcane strike without a huge casting score, or rings of wizardry to gain extra spells per day. no arcane spell failure in
Cons- lower Caster level only get access to 7th level spells pre epic. ( not a huge problem but not always desirable) and small lack of spells known due to sorcerer base.
i like this for a first attempt at playing a gish it is playable from levels 1 and on as well as letting oyu learn the basic tatics of a gish in combat. also with the high starting con you can tank and be front line melee at all times. when you add in buff spells you can get more HP than the tarrasque or an ancient dragon easily by 20th level.
To unpack the above description, the essence of it is the "arcane strike" which allows you to channel spell levels into direct damage. This allows you to focus more on utility spells and a broad spell selection (which is tricky to pull off with a sorcerer). For details on what spells to choose, I recommend asking a new question if you decide to go with this build.