CLAP or TAP the rhythm of your piece all the way through before you play.
Count in for two bars before you start.
SAY the rhythm OUT LOUD throughout (this really makes a huge difference!!)
If you are playing hands together make sure you tap both rhythms AT THE SAME TIME