"Be going to" is used to plans... for example: "I'm going to travel next week". And will is used to things done right now or in a time very far... for example: "I'll close the door" and "The sun will explode in 5 billion years". I'm a brazilian beginner in english, so if I wrote something wrong... sorry.