you havn't given a great deal of info but here are a few suggestions to be going with
have you tried to ping each machine to see if their is any communication.
Have you got a firewall in the way?
Check you are using the correct cable for direct connection between 2 pc's should be crossover
have you run the wizard if using xp
manual set up have you assigned ip adresses